Sign Up

Log In

ColorTag

FREEMIUM
By apicloud
Updated 4 months ago
Media
9.2/10
Popularity Score
1322ms
Latency
97%
Success Rate
SmartPickings2 years ago
404 StatusHi I am successfully able to make calls to your API in the Mashape interface but as soon as I move to the command line in Ruby using different libraries I always get the same status returned. * The request is sending the right content as seen in the content length. * I changed the url to post to my server and was able to retrieve the image * I tried imagga using exactly the same ruby code and only changed the url and it works fine **Request** ``` I, [2016-09-17T16:22:25.818259 #16439] INFO -- : post https://apicloud-colortag.p.mashape.com/tags-file.json D, [2016-09-17T16:22:25.818309 #16439] DEBUG -- request: User-Agent: "Faraday v0.9.2" X-Mashape-Key: "..." Content-Type: "multipart/form-data; boundary=-----------RubyMultipartPost" Content-Length: "1346518" date: "Sat, 17 Sep 2016 15:22:29 GMT" server: "Mashape/5.0.6" x-ratelimit-calls-limit: "500" x-ratelimit-calls-remaining: "446" content-length: "20" connection: "Close" ``` **Response** ``` "content-type"=>"text/html charset=UTF-8" "date"=>"Sat, 17 Sep 2016 15:17:27 GMT" "server"=>"Mashape/5.0.6" "x-ratelimit-calls-limit"=>"500" "x-ratelimit-calls-remaining"=>"447" "content-length"=>"20" "connection"=>"Close" "status"=>404 ``` Anything you can do to help would be great. I am very keep to use your API rather than others.
apicloud2 years ago
Sure, you are welcome!)
SmartPickings2 years ago
Such a silly mistake. Thank you for taking the time to respond.
apicloud2 years ago
Hi guys, I see you have a typo here: https://apicloud-colortag.p.mashape.com/tags-file.json It must be https://apicloud-colortag.p.mashape.com/tag-file.json
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-colortag.p.rapidapi.com/tag-file.json")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("palette=undefined")
.send("sort=undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication
Sign up for freeto test this endpoint
Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard