{"id":21161572,"url":"https://github.com/loctools/perl-loctools-net","last_synced_at":"2026-04-28T19:05:59.498Z","repository":{"id":146544637,"uuid":"234175494","full_name":"loctools/perl-loctools-net","owner":"loctools","description":"Loctools::Net Perl module","archived":false,"fork":false,"pushed_at":"2020-01-15T21:36:54.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T08:21:53.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/loctools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-15T21:18:45.000Z","updated_at":"2020-01-15T21:36:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"d87d12f8-340c-4a72-8f7b-0d0a4ad24a18","html_url":"https://github.com/loctools/perl-loctools-net","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/loctools/perl-loctools-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loctools","download_url":"https://codeload.github.com/loctools/perl-loctools-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loctools%2Fperl-loctools-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32394551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T13:15:06.405Z","updated_at":"2026-04-28T19:05:59.481Z","avatar_url":"https://github.com/loctools.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Loctools::Net\n\nA collection of utility modules to simplify working with HTTP and OAuth2-based services.\n\n## Loctools::Net::OAuth2::Session\n\nThis is a wrapper on top of `Net::OAuth2::Profile::WebServer` that implements a session that persists in a file. It allows you to authorize the application on first use, and then loads the session from disk and renews the token automatically.\n\n## Loctools::Net::OAuth2::Session::Google\n\nThis module is a wrapper on top of `Loctools::Net::OAuth2::Session` that presets Google OAuth2 parameters.\n\n## Loctools::Net::HTTP::Client\n\nThis is a wrapper on top of `LWP::UserAgent` that implements HTTP requests with exponential back-off and automatic OAuth session renewal.\n\n## Installation\n\n    $ cpan Loctools::Net\n\n## Usage\n\n```perl\nuse Loctools::Net::OAuth2::Session::Google;\nuse Loctools::Net::HTTP::Client;\n\nmy $session = Loctools::Net::OAuth2::Session::Google-\u003enew(\n    client_id     =\u003e '\u003cmy-client-id\u003e',\n    client_secret =\u003e '\u003cmy-client-secret\u003e',\n    scope         =\u003e '\u003cscope-id\u003e',\n    session_file  =\u003e './oauth2-session.json',\n);\n\n# this will automatically load the session,\n# renew the token if it is expired,\n# or show the authorization prompt in the console\nmy $client = Loctools::Net::HTTP::Client-\u003enew(session =\u003e $session);\n\n# $client-\u003eget('https://...');\n# $client-\u003epost_json('https://...', { ... });\n# ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floctools%2Fperl-loctools-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floctools%2Fperl-loctools-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floctools%2Fperl-loctools-net/lists"}