PHP code example of yassine_z / laravel-socialite-snapchat-ads-api

1. Go to this page and download the library: Download yassine_z/laravel-socialite-snapchat-ads-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/ */

    

yassine_z / laravel-socialite-snapchat-ads-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();