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

Loop from list using unirest in python

I'm looking to loop print synonyms for each item from my list myList = ["First", "Second", "Third"] tried few loop methods with no success, please help to print them manually 1 by 1 the command is response =…
totheM
  • 3
  • 2
0
votes
2 answers

How do I return a List from a JSON like this?
I'm making a webapp using Giant Bomb API. I'm stuck because I need to get a list of search results from GET request (using Unirest) and then convieniently convert it to a List of Objects called suggestions. Here's where my problem is: private…
VapeKop
  • 349
  • 2
  • 4
  • 13
0
votes
1 answer

Ruby uniquest request : error 500

Just get a HTTP error 500 when I try to execute this uniquest Ruby script. The goal is to make an HTTP POST request on an API which use oauth to authenticate. So I made 2 arrays, one for the request header and a second for the request body, but it…
Bastien Robert
  • 809
  • 1
  • 10
  • 31
0
votes
1 answer

I want to request below things with ruby unirest but I can't do that

This is request POST /oauth/token HTTP/1.1 Host: api.quizlet.com Authorization: Basic N0pIMzhUMjd6TTpOM3JYd3l2TU5OWlNGQWNBd0ozZ3lH Content-Type: application/x-www-form-urlencoded; charset=UTF-8 …
0
votes
1 answer

Serializing data using Unirest in symfony3

I'd like to search my persons by query. Everything is alright with my server side of work. I verified in postman that link/persons/query is working well of course when I add ?name=aaa it works well. But the problem is in my symfony code, when I…
bsm
  • 81
  • 2
  • 9
0
votes
1 answer

UnirestException: connect timed out on Tomcat 7

At work, I am trying to deploy a java 8-based application on Tomcat 7 server. The application should call some RESTful api based on another server (which is still ours). By reading some resources online I decided to use a HTTP request client…
Francesco Sgaramella
  • 1,009
  • 5
  • 21
  • 39
0
votes
1 answer

Hipchat Message with Groovy - Can't find an ObjectMapper implementation

I'm having trouble with a Groovy script, attempting to post a message in Hipchat with Unirest. Caught: java.lang.RuntimeException: Serialization Impossible. Can't find an ObjectMapper implementation. java.lang.RuntimeException: Serialization…
MaNoKi
  • 3
  • 1
0
votes
1 answer

Updating Jira Cloud using the Unirest API

I am able to access Jira cloud using Unirest Java library and basic authentication. Thanks to the Stackflowers for making it possible. I would like to update one sample ticket's priority using the same. Below is the groovy code. Its not working but.…
0
votes
1 answer

Accessing Jira Cloud using Unirest Java libraries

I would like to use Unirest Java libraries for accessing Jira Cloud. Can you share any code snippets? Thank you.
0
votes
1 answer

How to create Square Customer with Node.js and Unirest

I am trying to create a new Square user, but am having problems. I was able to use Unirest to GET a Square customer list at the https://connect.squareup.com/v2/customers endpoint, but haven't been able to successfully POST. const unirest =…
KVNA
  • 847
  • 1
  • 11
  • 24
0
votes
0 answers

data disappear out of UNIUrlConnection

What I'm trying to do is to pass data from my Objective-C to my swift file. Recently, when I have successfully connected my objective c file with my swift file, I can print data that get from UNIUrlConnection(which means the connection between swift…
z.wang
  • 1
  • 1
0
votes
1 answer

Making asynchronous requests using Unirest returns ZipException: Not in GZIP format

I want to make asynchronous requests to my server using Unirest. This is my test code: public void unirestTest() throws InterruptedException, ExecutionException { Unirest.get("https://jsonplaceholder.typicode.com/posts/1") …
Defozo
  • 2,946
  • 6
  • 32
  • 51
0
votes
1 answer

Create inventory Square API / UNIREST Picture Upload

I want to create a product on my website and have it be created on square (which is working). However I also want to set the initial inventory which is seems there is no way to do it from the documentation.…
ManuEng13
  • 1
  • 1
0
votes
1 answer

how to make two api requests using a response param and conditional

I'm trying to use this conditional so if the response does not contain a sectionid it will return the first response and if it does contain a sectionid it will return the second response. The problem is, is that sectionid is in the response and I'm…
0
votes
1 answer

Unirest Headers Request Body

I've got a quick question about making a Unirest Request with headers. I am using the NOAA API to access weather information. They ask that you send a header with the following, but it is in CURL and I need help converting it to Java to make a…
LJP1203
  • 115
  • 2
  • 11