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

How to call more than request in Nodejs using Unirest

I'm using Nodejs and Unirest and have the following code : import u from 'unirest'; u.get(firstUrl).query(q).end(function (response) { if (response.status == 200) { posts =…
Maria Minh
  • 1,219
  • 4
  • 15
  • 27
0
votes
1 answer

Can't get JSON into array from POST request

I'm using the Unirest library to parse some JSON I'm getting from a MAshape API. I'm new to making HTTP requests in Java, and I'm having trouble understanding the error. The function I made is: public ArrayList httpPost(int year) { …
ashraj98
  • 384
  • 5
  • 17
0
votes
1 answer

Cant seem to make cookie authenticated requests using Unirest

I'm trying to use the Unirest Jar feature to make session authenticated requests however I cant seem to get my name console logged. The following is sample code Im using. Any ideas on how I can get my name console logged? var cheerio =…
mbejda
  • 1,471
  • 16
  • 25
0
votes
1 answer

Pass variable to params unirest

I have a function which returns a list of text. I am using an API from Mashape (Maui-Pro) which generates keywords from a given piece of text. Mashape requires that you use unirest for HTTP requests. I want to pass the list of text to the API and…
sammy88888888
  • 458
  • 1
  • 5
  • 18
0
votes
1 answer

Passing complex object to rails action via Unirest

I have a simple controller: class ApplicationController < ActionController::Base def test_action render plain: "OK" end end And I'm posting to the action via a separate ruby file using Unirest: require 'unirest' resp = Unirest.post…
Jesse Aldridge
  • 7,991
  • 9
  • 48
  • 75
0
votes
1 answer

Importing Unirest, dependencies issues

So I was trying to import Unirest for java to make simple http requests. Now I ran into warnings about duplicated dependencies regarding Apache dependencies. I first thought to solve this by adding this to the build.grandle: packagingOptions { …
CularBytes
  • 9,924
  • 8
  • 76
  • 101
0
votes
1 answer

SSLPeerUnverifiedException (Unirest)

I'm new to messing around with APIs (both official and unofficial) and I'm using one called JavaSnap. I've been messing around with a very basic implementation of the example code, but have been running into errors. Here is the very basic…
quantum285
  • 1,032
  • 2
  • 11
  • 23
0
votes
0 answers

How do I send array of files by Unirest objective-c?

I am using Unirest in my objective-c project. It is a very small but handy library. https://github.com/Mashape/unirest-obj-c However, I can't wrap my mind around how to POST array of files with Unirest. If I were to build an HTML form, it will…
Reed
  • 1,628
  • 3
  • 21
  • 29
0
votes
0 answers

Why does Xcode misinterpret return type of Unirest API UNIHTTPJsonResponse header?

I am trying to compile example code for "Camfind" API but its failing on retrieving response header: NSDictionary *responseHeaders = response.headers Implicit conversion of a non-Objective C pointer type int * to NSDictionary is disallowed with…
0
votes
1 answer

mashape unirest java Future HttpResponse asJsonAsync cannot find symbol

I'm a newbie to mashape unirest, and I can't seem to figure out what I'm doing wrong. I'm using maven to use unirest as a dependency, as so: com.mashape.unirest
Jon
  • 7,848
  • 1
  • 40
  • 41
0
votes
1 answer

Java "Broken Pipe" Error (using Unirest http wrapper)

I'm using the unirest http wrapper (http://unirest.io/java.html) in a Java application to send http post requests. Unfortunately I keep getting a "broken pipe" error: com.mashape.unirest.http.exceptions.UnirestException: java.net.SocketException:…
timminss
  • 271
  • 3
  • 11
0
votes
1 answer

Use External Java Library in Android

I have to use one of mashape api in my android application, for that I have to include their java support library named unirest to my android project, I have added that library via build configuration settings. but when I run the project it throws…
programr
  • 25
  • 8
0
votes
1 answer

Android Studio: Unirest-Java Could not find class 'org.apache.http.impl.client.CloseableHttpClient'

I'm trying to create a google glass application that uses the CamFind api to recognize objects from the camera. I've gotten maven to install, but it won't assemble the "master jar", so I'm adding dependencies to the gradle build path. I've gotten it…
0
votes
1 answer

Objective-c parsing JSON

I'm totally new in Objective-c programming. I try to make a get request from my app. I'm using Unirest for Objective-C as the HTTP Libraries. My API will return JSON as below :- { "merchant_list": [ { "_id": "543ce2887ca4e102af44a5a8", …
skycrew
  • 918
  • 1
  • 15
  • 30
0
votes
2 answers

Separate JSON response

I am getting a response using Unirest library, i need to separate the data, so that based on that data i can call my next query. Here is full json response i am getting while using Unirest library echo '
'; print_r($response->raw_body); echo…
Mark
  • 111
  • 8