Slice

FREE
By slice
Updated 4 months ago
Commerce
2/10
Popularity Score
312ms
Latency
100%
Success Rate

Slice API Documentation

Slice has developed technology to extract purchase data from an email inbox, and with the Slice Platform we are allowing developers everywhere to build awesome experiences that leverage their users' purchase data. We power applications from recommendation software, to notification services, to personal asset-management software.

View API Details
Resources
GETUsers
GETOrders
GETItems
GETShipments
GETMailboxes
GETMerchants
GETCategories
GETProviders
GETPurchase Types
GETShippers
GETRecalls
GETEmails
GETLogin-Update
GETUsers

Users resource

Authorization:

Please sign up at https://developer.slice.com and follow the instructions at http://devdocs.slice.com/resources/hello/

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationHEADER
REQUIREDPaste the access token here and prefix it with 'Bearer' e.g. Bearer 1236276327
Code Snippet
unirest.get("https://slice-slice-v1.p.rapidapi.com/users/self")
.header("X-RapidAPI-Host", "slice-slice-v1.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://slice-slice-v1.p.rapidapi.com/users/self
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://slice-slice-v1.p.rapidapi.com/users/self")
.header("X-RapidAPI-Host", "slice-slice-v1.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