\XeroOAuth
Synopsis
class XeroOAuth
{
- // members
- public $_xero_defaults;
- public $_xero_consumer_options;
- public $_action;
- public $_nonce_chars;
- // methods
- public void __construct()
- private the curlHeader()
- private void curlWrite()
- public array extract_params()
- private $data safe_encode()
- private $data safe_decode()
- private void prepare_method()
- private void curlit()
- public void MakeRequest()
- public void request()
- public string parseResponse()
- public string url()
- public array refreshToken()
- public static string php_self()
- public void diagnostics()
Members
public
- $_action
- $_nonce_chars
- $_xero_consumer_options
- $_xero_defaults
Methods
private
- curlHeader() — Utility function to parse the returned curl headers and store them in the class array variable.
- curlWrite() — Utility function to parse the returned curl buffer and store them until an EOL is found.
- curlit() — Makes a curl request.
- prepare_method() — Prepares the HTTP method for use in the base string by converting it to uppercase.
- safe_decode() — Decodes the string or array from it's URL encoded form If an array is passed each array value will will be decoded.
- safe_encode() — Encodes the string or array passed in a way compatible with OAuth.
public
- __construct() — Creates a new XeroOAuth object
- MakeRequest()
- diagnostics()
- extract_params() — Extracts and decodes OAuth parameters from the passed string
- parseResponse() — Convert the response into usable data
- php_self() — Returns the current URL.
- refreshToken() — Refreshes the access token for partner API type applications
- request() — Make an HTTP request using this library.
- url() — Utility function to create the request URL in the requested format