2017 © Pedro Peláez
 

library etsy

Etsy OAuth1 Provider for Laravel Socialite

image

socialiteproviders/etsy

Etsy OAuth1 Provider for Laravel Socialite

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 55 % Grown

The README.md

Etsy

Support for OpenAPI v3 on Etsy., (*1)

Note: V2 is scheduled to sunset Q4 2022., (*2)

Installation & Basic Usage

composer require socialiteproviders/etsy

Add configuration to config/services.php

'etsy' => [    
  'client_id' => env('ETSY_CLIENT_ID'),  
  'client_secret' => env('ETSY_CLIENT_SECRET'),  
  'redirect' => env('ETSY_REDIRECT_URI') 
],

Add variables to .env

You can find/update this information from https://www.etsy.com/developers/your-apps, (*3)

ETSY_CLIENT_ID={YOUR API KEY}
ETSY_CLIENT_SECRET={YOUR SECRET}
ETSY_REDIRECT_URI=https://example.com/callback

Laravel 11+

In 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., (*4)

Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('etsy', \SocialiteProviders\Etsy\Provider::class);
});

Laravel 10 or below Add provider event listener app/Providers/EventServiceProvider
, (*5)

Configure the package's listener to listen for SocialiteWasCalled events., (*6)

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions., (*7)

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

, (*8)

Usage web/routes.php

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed)., (*9)

Note: The email_r is enabled by default so you can access user information in the callback., (*10)

// the redirect
return Socialite::driver('etsy')
        ->scopes[['include', 'scopes', 'here']]  
        ->redirect();

// the callback
$etsyUser = Socialite::driver('etsy')
        ->user();

Returned User fields

  • id
  • nickname
  • name
  • email
  • avatar

The Versions

12/02 2018

dev-master

9999999-dev

Etsy OAuth1 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Felipe Marques

25/01 2017

v3.0.0

3.0.0.0

Etsy OAuth1 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Felipe Marques

08/04 2016

v2.0.2

2.0.2.0

Etsy OAuth1 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Felipe Marques

07/04 2016

v2.0.1

2.0.1.0

Etsy OAuth1 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Felipe Marques

30/03 2016

v2.0.0

2.0.0.0

Etsy OAuth1 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Felipe Marques

18/12 2015

1.0.x-dev

1.0.9999999.9999999-dev

Etsy OAuth1 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Felipe Marques

18/12 2015

v1.0.0

1.0.0.0

Etsy OAuth1 Provider for Laravel Socialite

  Sources   Download

MIT

The Requires

 

by Felipe Marques