{"id":39857781,"url":"https://github.com/dmt-software/oauth2-trustpilot","last_synced_at":"2026-01-18T13:54:09.179Z","repository":{"id":57664275,"uuid":"480547691","full_name":"dmt-software/oauth2-trustpilot","owner":"dmt-software","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-13T06:10:04.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T17:17:46.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/dmt-software.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-11T20:51:00.000Z","updated_at":"2022-04-11T20:54:25.000Z","dependencies_parsed_at":"2022-09-10T14:11:33.858Z","dependency_job_id":null,"html_url":"https://github.com/dmt-software/oauth2-trustpilot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dmt-software/oauth2-trustpilot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Foauth2-trustpilot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Foauth2-trustpilot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Foauth2-trustpilot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Foauth2-trustpilot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmt-software","download_url":"https://codeload.github.com/dmt-software/oauth2-trustpilot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmt-software%2Foauth2-trustpilot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28537351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T13:04:05.990Z","status":"ssl_error","status_checked_at":"2026-01-18T13:01:44.092Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-01-18T13:54:09.075Z","updated_at":"2026-01-18T13:54:09.166Z","avatar_url":"https://github.com/dmt-software.png","language":"PHP","readme":"# Trustpilot Provider for OAuth 2.0 Client\n\n## Install\n\n`composer require dmt-software/oauth2-trustpilot`\n\n## Usage\n\n```php\nuse DMT\\OAuth2\\Client\\Provider\\Trustpilot;\nuse League\\OAuth2\\Client\\Provider\\Exception\\IdentityProviderException;\n\n$provider = new Trustpilot([\n    'clientId' =\u003e '{ your_client_id }',\n    'clientSecret' =\u003e '{ your_client_secret }',\n]);\n\ntry {\n    $accessToken = $provider-\u003egetAccessToken(\n        'password', [\n            'username' =\u003e '{ your_username }',\n            'password' =\u003e '{ your_password }'\n        ]\n    );\n} catch (IdentityProviderException $exception) {\n    if ($exception-\u003egetCode() === 401) {\n        // token is expired\n    }\n    if ($exception-\u003egetCode() === 429) {\n        // too many requests\n    }\n}\n```\n\n\u003e see more examples on [league/oauth2-client](https://oauth2-client.thephpleague.com/usage/)\n\n## Error handling\n\nUnfortunately the response body in case of an error is not consistent. To better understand the reason a request is \nfailed call the `IdentityProviderException::getResponseBody` method.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmt-software%2Foauth2-trustpilot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmt-software%2Foauth2-trustpilot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmt-software%2Foauth2-trustpilot/lists"}