Class Credentials
Get and set the credential in the JSON file if we cant find credentials.json
Final
Namespace: Catapult
Object:
Located at core/Credentials.php
Namespace: Catapult
Object:
Credentials can also be loaded by associative an array or from the envorinment variables
Located at core/Credentials.php
Methods summary
public
|
#
__construct( user_token: $user_token = '', api_token: $api_token = '', api_secret: $api_secret = '' )
All string parameters if provided use these in place of json credentials |
public
|
|
protected
stdClass
|
|
protected
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public static
|
Properties summary
public static
array
|
$credentials_opts
credentials should initially be set to 'credentials.json' which will be found in the parent directory |
#
array(
"file" => "credentials.json"
)
|