fetch-store-json
v1.1.8
Published
This package lets you fetch data from an API and store it into a file in JSON format
Downloads
17
Maintainers
Readme
fetch-store-json
This package lets you fetch data from an API and store it into a file in JSON format
Installing
Using npm:
npm install fetch-store-json
Using yarn:
yarn add fetch-store-json
Inputs
You need to provide 7 inputs in this order:
(API-Endpoint-URL,client_id,client_secret,authorization,starting_page_number,ending_page_number,page_size)
Note:
- API_Endpoint_URL,client_id,client_secret and authorization must all be in strings. The remaining three parameters must be integers.
- Do not include query parameter symbol
?
at the end of the API_Endpoint_URL.
Example
const fetch=require('fetch-store-json');
fetch('https://www.somesite.com/api-2.0/courses/','paste_your_client_id','paste_your_client_secret','paste_your_authorization',1,10,1000);