Gift Card Rewards - Deprecated - Use Rewards as a Service

FREE
By tangocard
Updated 4 months ago
Reward
4.2/10
Popularity Score
998ms
Latency
-
Success Rate

Gift Card Rewards - Deprecated - Use Rewards as a Service API Documentation

Deprecated - Use Rewards as a Service at https://market.mashape.com/tangocard/rewards-as-a-service or https://rapidapi.com/tangocard/api/Rewards%20as%20a%20Service

View API Details
POSTPurchaseCard
POSTGetAvailableBalance
POSTPurchaseCard

Purchases a gift card against your Tango Card account

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Code Snippet
unirest.post("https://tangocard-tangocardapi.p.rapidapi.com/Version2/PurchaseCard")
.header("X-RapidAPI-Host", "tangocard-tangocardapi.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://tangocard-tangocardapi.p.rapidapi.com/Version2/PurchaseCard
Request Method: POST
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.post("https://tangocard-tangocardapi.p.rapidapi.com/Version2/PurchaseCard")
.header("X-RapidAPI-Host", "tangocard-tangocardapi.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication