Direct Wines

FREE
By directwines
Updated 4 months ago
Commerce
0.8/10
Popularity Score
1238ms
Latency
-
Success Rate

Direct Wines API Documentation

The API provides you a way to consume different API's around product, customer and account.

View API Details
Cart
GETCart
User
GETRecommendations
GETProfile
Order
PUT/api/order/create/{order}
GETCart
Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationBASIC
REQUIREDdescription
Code Snippet
unirest.get("https://directwines.p.rapidapi.com/cart/list")
.header("X-RapidAPI-Host", "directwines.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://directwines.p.rapidapi.com/cart/list
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://directwines.p.rapidapi.com/cart/list")
.header("X-RapidAPI-Host", "directwines.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication