Property | Type | Description | |
---|---|---|---|
$auth_type | |||
$debug | |||
$last_response | |||
$logger | |||
$oauth | |||
$session_manager |
Property | Type | Description | |
---|---|---|---|
$ch | |||
$client_id | |||
$client_secret | |||
$headers | |||
$secret | |||
$url |
Method | Description | |
---|---|---|
authenticate ( $grant_type, $attributes ) | ||
authenticate_with_app ( $app_id, $app_token ) | ||
authenticate_with_authorization_code ( $authorization_code, $redirect_uri ) | ||
authenticate_with_password ( $username, $password ) | ||
authorize_url ( $redirect_uri, $scope ) | ||
clear_authentication ( ) | ||
curl_headers ( ) | ||
delete ( $url, $attributes = [] ) | ||
encode_attributes ( $attributes ) | ||
get ( $url, $attributes = [], $options = [] ) | ||
is_authenticated ( ) | ||
log_request ( $method, $url, $encoded_attributes, $response, $curl_info ) | ||
parse_headers ( $headers ) | ||
post ( $url, $attributes = [], $options = [] ) | ||
put ( $url, $attributes = [] ) | ||
rate_limit ( ) | ||
rate_limit_remaining ( ) | ||
refresh_access_token ( ) | ||
request ( $method, $url, $attributes = [], $options = [] ) | ||
set_debug ( $toggle, $output = "stdout" ) | Set debug config | |
setup ( $client_id, $client_secret, $options = ['session_manager' => null, 'curl_options' => []] ) | ||
shutdown ( ) | ||
url_with_options ( $url, $options ) |
public static authenticate_with_app ( $app_id, $app_token ) |
public static authenticate_with_authorization_code ( $authorization_code, $redirect_uri ) |
public static authenticate_with_password ( $username, $password ) |
public static log_request ( $method, $url, $encoded_attributes, $response, $curl_info ) |
public static request ( $method, $url, $attributes = [], $options = [] ) |
public static set_debug ( $toggle, $output = "stdout" ) | ||
$toggle | True to enable debugging. False to disable | |
$output | Output mode. Can be "stdout" or "file". Default is "stdout" |
public static setup ( $client_id, $client_secret, $options = ['session_manager' => null, 'curl_options' => []] ) |