OAuthResponse

Overview

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().

Methods Summarized

Methods Detailed

getCode()

Returns: Number The HTTP status code of the OAuth response.

getHeader(name)

Parameters

Returns: String The value of the specified header, or null if the header is not present.

getHeaders()

Returns: Array An array of all header names in the OAuth response.


Last updated

Was this helpful?