RapidAPI logo

Sign Up

Log In

FaceMark

FREEMIUM
By apicloud
Updated 3 months ago
Media
7.2/10
Popularity Score
1229ms
Latency
98%
Success Rate
zjlzf1238 months ago
Call back error 500 Dear all, I need your help, I meet a error when testing faceMark fucion as fellow: content-type:"application/json" date:"Mon, 08 Oct 2018 10:04:31 GMT" server:"Mashape/5.0.6" x-mashape-proxy-response:"true" content-length:"70" connection:"Close" ▶root:{} 1 key error:"You need to subscribe to a plan before consuming the API"
apicloud3 months ago
Hi. You just need to subscribe to a plan before consuming the API :) That are the rules of the RapidAPI platform.
Hi Developer, feel free to post your answer:
Log inSign up

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://apicloud-facemark.p.rapidapi.com/process-file.json")
.header("X-RapidAPI-Host", "apicloud-facemark.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