Skip to content

Repository script API / utils/github-api / requestJson

Function: requestJson() ​

requestJson(fetchImpl, url, options, description): Promise<any>

Defined in: utils/github-api.mjs:45

Sends a request and returns its JSON body, or throws with the status and the start of the body.

Parameters ​

fetchImpl ​

any

url ​

any

options ​

any

description ​

any

Returns ​

Promise<any>

pumpkin-plugins documentation