How to use the http-call.HTTP.post function in http-call

To help you get started, we’ve selected a few http-call examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github heroku / cli / scripts / github_token.js View on Github external
async function run () {
  const { body } = await HTTP.post(`https://api.github.com/app/installations/${installation}/access_tokens`, {
    headers: {
      Authorization: `Bearer ${token}`,
      Accept: 'application/vnd.github.machine-man-preview+json"'
    }
  })
  console.log(body.token)
}
github jdxcode / npm-register / lib / npm.js View on Github external
async function post (path, body) {
  const opts = Object.assign({body}, getRequestOpts())
  const req = await HTTP.post(url.resolve(config.uplink.href, path), opts)
  return req.body
}

http-call

make http requests

ISC
Latest version published 4 years ago

Package Health Score

66 / 100
Full package analysis