{"id":21601518,"url":"https://github.com/seinopsys/oauth2-deviantart","last_synced_at":"2026-04-27T08:31:51.899Z","repository":{"id":57048194,"uuid":"96726831","full_name":"SeinopSys/oauth2-deviantart","owner":"SeinopSys","description":"DeviantArt Provider for OAuth 2.0 Client","archived":false,"fork":false,"pushed_at":"2018-01-13T08:56:54.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T06:10:48.345Z","etag":null,"topics":["deviantart","oauth2","oauth2-client","php"],"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/SeinopSys.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-10T02:15:38.000Z","updated_at":"2017-07-10T02:52:37.000Z","dependencies_parsed_at":"2022-08-23T18:51:03.373Z","dependency_job_id":null,"html_url":"https://github.com/SeinopSys/oauth2-deviantart","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeinopSys%2Foauth2-deviantart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeinopSys%2Foauth2-deviantart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeinopSys%2Foauth2-deviantart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeinopSys%2Foauth2-deviantart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeinopSys","download_url":"https://codeload.github.com/SeinopSys/oauth2-deviantart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244227577,"owners_count":20419263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["deviantart","oauth2","oauth2-client","php"],"created_at":"2024-11-24T19:09:44.949Z","updated_at":"2026-04-27T08:31:51.840Z","avatar_url":"https://github.com/SeinopSys.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeviantArt Provider for OAuth 2.0 Client\n[![Build Status](https://travis-ci.org/SeinopSys/oauth2-deviantart.svg?branch=master)](https://travis-ci.org/seinopsys/oauth2-deviantart)\n[![Latest Stable Version](https://poser.pugx.org/seinopsys/oauth2-deviantart/v/stable.png)](https://packagist.org/packages/seinopsys/oauth2-deviantart)\n\n[DeviantArt](https://deviantart.com/) OAuth 2.0 support for the PHP League’s [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).\n\n## Installation\n\n```\n$ composer require seinopsys/oauth2-deviantart\n```\n\n## Usage\n\nYou can get your OAuth client credentials [here](https://www.deviantart.com/developers/apps).\n\n```php\n$provider = new SeinopSys\\OAuth2\\Client\\Provider\\DeviantArtProvider([\n\t'clientId' =\u003e 'client_id',\n\t'clientSecret' =\u003e 'client_secret',\n\t'redirectUri' =\u003e 'http://example.com/auth',\n]);\n\n$accessToken = $provider-\u003egetAccessToken('authorization_code', [\n\t'code' =\u003e $_GET['code'],\n\t'scope' =\u003e ['user','browse'] // optional, defaults to ['user']\n]);\n$actualToken = $accessToken-\u003egetToken();\n$refreshToken = $accessToken-\u003egetRefresh();\n\n// Once it expires\n\n$newAccessToken = $provider-\u003egetAccessToken('refresh_token', [\n\t'refresh_token' =\u003e $refreshToken\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseinopsys%2Foauth2-deviantart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseinopsys%2Foauth2-deviantart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseinopsys%2Foauth2-deviantart/lists"}