OAuthResponse
Last updated
Was this helpful?
The OAuthResponse class is used to handle HTTP responses in the context of OAuth-based API interactions. It provides mechanisms to retrieve the HTTP status code, individual header values, and all header names associated with the response.
Key functionalities include the ability to fetch the HTTP status code through getCode(), retrieve a specific header value using getHeader(name), and obtain a list of all headers with getHeaders().
Returns: Number The HTTP status code of the OAuth response.
Parameters
String name ;
Returns: String The value of the specified header, or null if the header is not present.
Returns: Array An array of all header names in the OAuth response.
Last updated
Was this helpful?
Was this helpful?