PHP code example of yz / laravel-socialite-snapchat-marketing-api

1. Go to this page and download the library: Download yz/laravel-socialite-snapchat-marketing-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yz / laravel-socialite-snapchat-marketing-api example snippets


'snapchat_marketing_api' => [    
  'client_id' => env('SNAPCHAT_CLIENT_ID'),  
  'client_secret' => env('SNAPCHAT_CLIENT_SECRET'),  
  'redirect' => env('SNAPCHAT_REDIRECT_URI') 
],

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        'SocialiteProviders\SnapchatMarketingApi\SnapchatMarketingApiExtendSocialite@handle'
    ],
];

return Socialite::driver('snapchat_marketing_api')->redirect();