PHP Class Strava\API\Factory

Author: Bas van Dorst
Show file Open project: basvandorst/stravaphp

Public Methods

Method Description
getAPIClient ( string $token ) : Client Return a new instance of the API Client
getOAuthClient ( string $client_id, string $client_secret, string $redirect_uri ) : OAuth Return a new instance of the OAuth Client

Method Details

getAPIClient() public method

Return a new instance of the API Client
public getAPIClient ( string $token ) : Client
$token string
return Client

getOAuthClient() public method

Return a new instance of the OAuth Client
public getOAuthClient ( string $client_id, string $client_secret, string $redirect_uri ) : OAuth
$client_id string
$client_secret string
$redirect_uri string
return OAuth