opauth-pinterest
Opauth strategy for pinterest.com authentication.
Based on Opauth's Instagram Oauth2 Strategy.
Getting started
-
Install opauth-pinterest:
cd path_to_opauth/Strategy git clone git@github.com:tykarol/opauth-pinterest.git Pinterest
-
Create a Pinterest application athttps://developers.pinterest.com/apps/
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
http://path_to_opauth/pinterest/oauth2callback
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
-
Configure opauth-pinterest strategy.
-
Direct user to
http://path_to_opauth/pinterest
to authenticate
Strategy configuration
Required parameters:
<?php
'Pinterest' => array(
'client_id' => 'YOUR CLIENT ID',
'client_secret' => 'YOUR CLIENT SECRET'
)
Optional parameters:
scope
, response_type
For scope
, separate each scopes with a comma (,). Eg. read_public,write_public
. All available scops can be found here.
References
License
opauth-pinterest is MIT Licensed