PHP Class Podio

Mostra file Open project: podio/podio-php Class Usage Examples

Public Properties

Property Type Description
$auth_type
$debug
$last_response
$logger
$oauth
$session_manager

Protected Properties

Property Type Description
$ch
$client_id
$client_secret
$headers
$secret
$url

Public Methods

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 )

Method Details

authenticate() public static method

public static authenticate ( $grant_type, $attributes )

authenticate_with_app() public static method

public static authenticate_with_app ( $app_id, $app_token )

authenticate_with_authorization_code() public static method

public static authenticate_with_authorization_code ( $authorization_code, $redirect_uri )

authenticate_with_password() public static method

public static authenticate_with_password ( $username, $password )

authorize_url() public static method

public static authorize_url ( $redirect_uri, $scope )

clear_authentication() public static method

public static clear_authentication ( )

curl_headers() public static method

public static curl_headers ( )

delete() public static method

public static delete ( $url, $attributes = [] )

encode_attributes() public static method

public static encode_attributes ( $attributes )

get() public static method

public static get ( $url, $attributes = [], $options = [] )

is_authenticated() public static method

public static is_authenticated ( )

log_request() public static method

public static log_request ( $method, $url, $encoded_attributes, $response, $curl_info )

parse_headers() public static method

public static parse_headers ( $headers )

post() public static method

public static post ( $url, $attributes = [], $options = [] )

put() public static method

public static put ( $url, $attributes = [] )

rate_limit() public static method

public static rate_limit ( )

rate_limit_remaining() public static method

public static rate_limit_remaining ( )

refresh_access_token() public static method

public static refresh_access_token ( )

request() public static method

public static request ( $method, $url, $attributes = [], $options = [] )

set_debug() public static method

Set debug config
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"

setup() public static method

public static setup ( $client_id, $client_secret, $options = ['session_manager' => null, 'curl_options' => []] )

shutdown() public static method

public static shutdown ( )

url_with_options() public static method

public static url_with_options ( $url, $options )

Property Details

$auth_type public_oe static_oe property

public static $auth_type

$ch protected_oe static_oe property

protected static $ch

$client_id protected_oe static_oe property

protected static $client_id

$client_secret protected_oe static_oe property

protected static $client_secret

$debug public_oe static_oe property

public static $debug

$headers protected_oe static_oe property

protected static $headers

$last_response public_oe static_oe property

public static $last_response

$logger public_oe static_oe property

public static $logger

$oauth public_oe static_oe property

public static $oauth

$secret protected_oe static_oe property

protected static $secret

$session_manager public_oe static_oe property

public static $session_manager

$url protected_oe static_oe property

protected static $url