Questions tagged [unirest]

Unirest is a set of lightweight HTTP libraries available in PHP, Ruby, Python, Java, Objective-C.

Unirest is a set of lightweight HTTP libraries available in PHP, Ruby, Python, Java, Objective-C.

More Details

354 questions
0
votes
1 answer

Unirest doing different things on local and live when accessing API

I have set up an API call to IGDB.com and on local everything is working perfectly there is not issues at all. When on live though it is doing loads of different things, not returning any body in the array and throws it in the ['headers'] or just…
Kyon147
  • 738
  • 2
  • 11
  • 28
0
votes
1 answer

Using Node.JS and Unirest for REST client over HTTPS throwing certificate issue

I am attempting to create my first REST client in Node.JS using Unirest. It is intended to communicate with a Flask RestPlus server that is proxied through Nginx over port 443. I can access the Swagger docs in Chrome with no SSL issues. The SSL…
0
votes
1 answer

Unirest PHP and Mashape API Response

i'm test this. Its my first time with unirest and mashape. Code:
0
votes
1 answer

How to get .tar.gz archive from unirest response?

I develop a tool converting ttf font to other formats using onlinefontconverter.com API. So I have a problem with obtaining propper tar.gz archive. I get file, but OS told me that archive is damaged. So how can I save file from response body? Here…
hetsketch.
  • 89
  • 1
  • 9
0
votes
0 answers

Node proxy requests from many users to other rest services

I'm trying to write a single backend that proxy request to many products in our internal network (intranet, bpm etc...). In the case of the bpm Bonita I need that every user login with his own credentials to the service that responde with a…
Roberto
  • 1
  • 3
0
votes
1 answer

is it possible to debug camel rest dsl component with jetty and unirest

I have a CarService Class: public class CarService { public Car getCar(){ Car car = new Car(); car.setBrand("hello"); car.setId("1"); return car; } } wich I expose through a…
Cedric Dumont
  • 1,009
  • 17
  • 38
0
votes
1 answer

Testing with unirest- java

Currently, I'm working in unirest java. This is a sample Url. Here parameters s is device secret and m is mac address and d is device id http://baseUrl.com?s=235&m=12:25:14:25&d=25 Now i want to automate different test cases like : null mac,…
XtremeTester
  • 13
  • 1
  • 7
0
votes
0 answers

API call with Postman returns data but calling the same API with python does not return data

I am having trouble getting data back when programmatically calling an API. However, when I make the same call manually using Postman I get data back. Here is the code I used to make the call using python. response = unirest.post(url='my api…
0
votes
1 answer

Node.js - http request is not working when inside a while loop

I'm using the unirest library to fetch all of the data from an api, which is split up by offset and limits parameters, and has no finite number of results. I'm using a while condition to iterate through the data and at the point where no results are…
mmmoustache
  • 2,273
  • 6
  • 41
  • 62
0
votes
1 answer

Send response from Unirest Node get request function to Jade view

I am in the process of building my first Node app, and I am having troubles with unirest.get requests. My project is built using Node, Express, Node and the Act On API. I am using the express generator to get the project of the ground quickly. The…
0
votes
1 answer

How do I return ajax response from unirest in nodejs?

I am using unirest from unirest.io to make ajax calls in node. I want to return attendance so I can use it in another place. function studentAttendance(req, res) { unirest .post('http://coer.ac.in/atten.php') .field('coerid',…
Ishan Jain
  • 665
  • 6
  • 20
0
votes
1 answer

working with REST API

Working with REST API (https://qwintry.com/ru/api-docs), trying make method which will register new user. There is the part of API docs about registering user request: Login Request example:
zzheads
  • 1,368
  • 5
  • 28
  • 57
0
votes
1 answer

Converting Curl to POST api for java

I would like to post some data to a rest api. The API documentation (See page 38) asks for the following: curl -u "USERNAME:PASSWORD" -H "Content-type: text/xml" -X "POST" --data-binary…
Cripto
  • 3,581
  • 7
  • 41
  • 65
0
votes
1 answer

REST client in node.js

I'm fairly new to node.js and I'm trying to make a simple node.js REST client to act as an SDK between an API and a larger application. This is the current code in the client SDK part corresponding to index.js: var unirest = require('unirest'); var…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
0
votes
1 answer

Twitter Authorization

For 2 days I've tried to do a request with unirest (I have to use it) to Twitter but I'm not getting good feedback from rest of what I'm doing wrong. This is my request: HttpResponse request = Unirest.post(…
Oskar Woźniak
  • 715
  • 2
  • 10
  • 25