diff --git a/reference/oauth/oauth/disabledebug.xml b/reference/oauth/oauth/disabledebug.xml new file mode 100644 index 0000000000..d077ae86cc --- /dev/null +++ b/reference/oauth/oauth/disabledebug.xml @@ -0,0 +1,63 @@ + + + + + + OAuth::disableDebug + Turn off verbose debugging + + + + &reftitle.description; + + public boolOAuth::disableDebug + + + + Turns off verbose request information (off by default). + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + + OAuth::enableDebug + + + + + + + diff --git a/reference/oauth/oauth/enabledebug.xml b/reference/oauth/oauth/enabledebug.xml new file mode 100644 index 0000000000..3524b4ce8b --- /dev/null +++ b/reference/oauth/oauth/enabledebug.xml @@ -0,0 +1,63 @@ + + + + + + OAuth::enableDebug + Turn on verbose debugging + + + + &reftitle.description; + + public boolOAuth::enableDebug + + + + Turns on verbose request information useful for debugging, this is not for production use. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + + OAuth::disableDebug + + + + + + + diff --git a/reference/oauth/oauth/fetch.xml b/reference/oauth/oauth/fetch.xml index 2b3b376c42..de025eb70c 100644 --- a/reference/oauth/oauth/fetch.xml +++ b/reference/oauth/oauth/fetch.xml @@ -1,5 +1,5 @@ - + @@ -13,9 +13,10 @@ public boolOAuth::fetch stringprotected_resource_url arrayextra_parameters + inthttp_method - Fetch a resource protected by OAuth. + Fetch a resource. @@ -39,6 +40,46 @@ + + http_method + + + http_method can be one of the following: + + + OAUTH_HTTP_METHOD_GET + + + Set the request method to GET. + + + + + OAUTH_HTTP_METHOD_POST + + + Set the request method to POST. + + + + + OAUTH_HTTP_METHOD_PUT + + + Set the request method to PUT. + + + + + OAUTH_HTTP_METHOD_HEAD + + + Set the request method to HEAD, this can be useful for + discovering information prior to the request (if OAuth credentials are + in the Authorization header). + + + @@ -89,6 +130,30 @@ try { + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + CVS / 0.99.5 + + Added an additional parameter to set the HTTP method for the request. + + + + + + + +