FetchOAuthHttpClient
Defined in: packages/auth/src/oauth/http-client.ts:43
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FetchOAuthHttpClient():
FetchOAuthHttpClient
Returns
Section titled “Returns”FetchOAuthHttpClient
Methods
Section titled “Methods”getJson()
Section titled “getJson()”getJson(
url,headers?):Promise<OAuthHttpResponse>
Defined in: packages/auth/src/oauth/http-client.ts:65
GET a JSON resource.
Parameters
Section titled “Parameters”string
headers?
Section titled “headers?”Record<string, string> = {}
Returns
Section titled “Returns”Promise<OAuthHttpResponse>
Implementation of
Section titled “Implementation of”postForm()
Section titled “postForm()”postForm(
url,form,headers?):Promise<OAuthHttpResponse>
Defined in: packages/auth/src/oauth/http-client.ts:44
POST an application/x-www-form-urlencoded body and parse JSON back.
Parameters
Section titled “Parameters”string
Record<string, string>
headers?
Section titled “headers?”Record<string, string> = {}
Returns
Section titled “Returns”Promise<OAuthHttpResponse>