{"id":16292250,"url":"https://github.com/socialiteproviders/notion","last_synced_at":"2025-03-20T03:30:46.250Z","repository":{"id":49283054,"uuid":"368381632","full_name":"SocialiteProviders/Notion","owner":"SocialiteProviders","description":"[READ ONLY] Subtree split of the SocialiteProviders/Notion Provider (see SocialiteProviders/Providers)","archived":false,"fork":false,"pushed_at":"2024-11-07T22:10:20.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T22:49:43.989Z","etag":null,"topics":["laravel","oauth","oauth1","oauth2","social-media","socialite","socialite-providers"],"latest_commit_sha":null,"homepage":"https://socialiteproviders.com/Notion/","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SocialiteProviders.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-18T02:46:54.000Z","updated_at":"2024-11-07T22:10:23.000Z","dependencies_parsed_at":"2022-09-15T06:03:36.661Z","dependency_job_id":"deb7a922-1551-47f7-8273-0bbaae331ef8","html_url":"https://github.com/SocialiteProviders/Notion","commit_stats":{"total_commits":18,"total_committers":6,"mean_commits":3.0,"dds":0.4444444444444444,"last_synced_commit":"79577db9882756117086828f2aec94d44bde09a6"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialiteProviders%2FNotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialiteProviders%2FNotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialiteProviders%2FNotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SocialiteProviders%2FNotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SocialiteProviders","download_url":"https://codeload.github.com/SocialiteProviders/Notion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244543726,"owners_count":20469551,"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":["laravel","oauth","oauth1","oauth2","social-media","socialite","socialite-providers"],"created_at":"2024-10-10T20:05:11.144Z","updated_at":"2025-03-20T03:30:45.914Z","avatar_url":"https://github.com/SocialiteProviders.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notion\n\n```bash\ncomposer require socialiteproviders/notion\n```\n\n## Installation \u0026 Basic Usage\n\nPlease see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.\n\n### Add configuration to `config/services.php`\n\n```php\n'notion' =\u003e [\n  'client_id' =\u003e env('NOTION_CLIENT_ID'),\n  'client_secret' =\u003e env('NOTION_CLIENT_SECRET'),\n  'redirect' =\u003e env('NOTION_REDIRECT_URI')\n],\n```\n\n### Add provider event listener\n\n#### Laravel 11+\n\nIn Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.\n\n* Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.\n\n```php\nEvent::listen(function (\\SocialiteProviders\\Manager\\SocialiteWasCalled $event) {\n    $event-\u003eextendSocialite('notion', \\SocialiteProviders\\Notion\\Provider::class);\n});\n```\n\u003cdetails\u003e\n\u003csummary\u003e\nLaravel 10 or below\n\u003c/summary\u003e\nConfigure the package's listener to listen for `SocialiteWasCalled` events.\n\nAdd the event to your `listen[]` array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.\n\n```php\nprotected $listen = [\n    \\SocialiteProviders\\Manager\\SocialiteWasCalled::class =\u003e [\n        // ... other providers\n        \\SocialiteProviders\\Notion\\NotionExtendSocialite::class.'@handle',\n    ],\n];\n```\n\u003c/details\u003e\n\n### Usage\n\nYou should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):\n\n```php\nreturn Socialite::driver('notion')-\u003eredirect();\n```\n\n### Returned User fields\n\n- ``id``\n- ``nickname`` (same as ``name``)\n- ``name``\n- ``email``\n- ``avatar``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialiteproviders%2Fnotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocialiteproviders%2Fnotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocialiteproviders%2Fnotion/lists"}