1.0.5 • Published 4 years ago

https-request-promise v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

https-request-promise

A simple way to make https requests in your JS projects.

Example:

const { request } = require('https-request-promise');

// Base HTTPS request options
const options = {
  method: 'POST',
  hostname: 'example.hostname.com',
  headers: {
    'Content-Type': 'application/json'
  },
};

// API Key
const api_key = 'ASDFGHJKL1234567890ASDFGHJKL1234567890ASDFGHJKL1234567890';

// A common API endpoint application...
const test = data => request({ ...options, path: '/api/test/it' }, { api_key, data });

(async () => test('Hello, API... I mean World!'))();
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago