OAuthHttpClient
Defined in: packages/auth/src/oauth/http-client.ts:17
Methods
Section titled “Methods”getJson()
Section titled “getJson()”getJson(
url,headers?):Promise<OAuthHttpResponse>
Defined in: packages/auth/src/oauth/http-client.ts:26
GET a JSON resource.
Parameters
Section titled “Parameters”string
headers?
Section titled “headers?”Record<string, string>
Returns
Section titled “Returns”Promise<OAuthHttpResponse>
postForm()
Section titled “postForm()”postForm(
url,form,headers?):Promise<OAuthHttpResponse>
Defined in: packages/auth/src/oauth/http-client.ts:19
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>