1.0.3 • Published 4 years ago
rekki-apis v1.0.3
rekki-apis
This is a repository that contains a single API of Rikki mobile app
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
What things you need to install the software and how to install them
npm install
Installing
A step by step series of examples that tell you how to get a development env running
first install the rekki-apis package on your app direcotry using below command
npm install rekki-apis
Running the tests
Just run you main application where you install the rekki-apis
And coding style tests
This is a post method which will accept the a since (timestamp) data and as well as header_data which is a JWT token from rekki
var unirest = require('unirest');
exports.list_orders_by_supplier = (post_data, header_data, callback) => {
//passing the post data
var headers = {
"Content-Type": "application/json",
"Authorization": "Bearer " + header_data,
}
//this is what actually you have to pass since data to get list
var passing_data = {
"since": post_data,//1575203255
}
//base API
var url = 'https://backend.live.rekki.com/api/catalog/integration/list_orders_by_supplier';
//calling post method
unirest.post(url)
.headers(headers)
.send(passing_data)
.end(function (response) {
callback(response);
});
};
Deployment
This package used the external package which is unirest.
Built With
- unirest - Unirest is a set of lightweight HTTP libraries available in multiple languages, built and maintained by Kong, who also maintain the open-source API Gateway Kong.
Versioning
1.0.1
Authors
- Awadhesh Kumar