AbstractOAuth

Abstract OAuth Client

Known subclasses

Upwork\API\AuthTypes\OAuth1, Upwork\API\AuthTypes\OAuthPHPLib
Abstract
Open source code
Methods Summary
public
# __construct( string $key , string $secret )
Constructor

access


public static
# option( string $option , mixed $value )
Set option

access


public
# auth( )
Auth process

access


abstract protected
# _setupAccessToken( string $verifier )
Get access token

access


abstract protected
# _getOAuthInstance( int $authType )
Get OAuth instance

access


Constants Summary
public string URL_AUTH
# '/services/api/auth'
public string URL_ATOKEN
# '/auth/v1/oauth/token/access'
public string URL_RTOKEN
# '/auth/v1/oauth/token/request'
Properties Summary
protected static Upwork\API\AuthTypes\Consumer $_apiKey
# NULL
protected static Upwork\API\AuthTypes\Consumer $_secret
# NULL
protected static Upwork\API\AuthTypes\oauth_token $_requestToken
# NULL
protected static Upwork\API\AuthTypes\oauth_token_secret $_requestSecret
# NULL
protected static Upwork\API\AuthTypes\Final $_accessToken
# NULL
protected static Upwork\API\AuthTypes\Final $_accessSecret
# NULL
protected static Upwork\API\AuthTypes\OAuth $_verifier
# NULL
protected static Upwork\API\AuthTypes\Entry $_epoint
# 'api'
protected static Upwork\API\AuthTypes\Application $_mode
# 'web'
protected static Upwork\API\AuthTypes\SSL $_verifySsl
# true
protected static Upwork\API\AuthTypes\Signature $_sigMethod
# 'HMAC-SHA1'