OAuthRequest
Overview
Wrapper around the scribe OAuthRequest.
Methods Summarized
Type | Name | Summary |
---|---|---|
void | Add a body parameter to the request. | |
void | Allows setting a header on the request object. | |
void | Add an OAuth parameter, like 'scope', 'realm' or with the 'oauth_' prefix | |
void | Add a body or a query string parameter, depending on the request type. | |
void | Add a query string parameter. | |
Execute a request that was created with the OAuth service. | ||
void | Set body payload. |
Methods Detailed
addBodyParameter(key, value)
Add a body parameter to the request.
Parameters
Returns: void
Sample
addHeader(header, value)
Allows setting a header on the request object.
Parameters
Returns: void
Sample
addOAuthParameter(key, value)
Add an OAuth parameter, like 'scope', 'realm' or with the 'oauth_' prefix
Parameters
Returns: void
addParameter(key, value)
Add a body or a query string parameter, depending on the request type. If the request allows a body (POST, PUT, DELETE, PATCH) then it adds it as a body parameter. Otherwise it is added as a query string parameter.
Parameters
Returns: void
addQuerystringParameter(key, value)
Add a query string parameter.
Parameters
Returns: void
execute()
Execute a request that was created with the OAuth service.
Returns: OAuthResponse the OAuthResponse object
Sample
setPayload(data)
Set body payload.
Parameters
String data ;
Returns: void
Sample
Last updated