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

xCode - Mashape API - Unirest

i need some help from you. I found a API on MaShape for Metascore but i just can't get it to work. I used Cocoapod to download Unirest framework and copy pasted the code snippet from Mashape NSDictionary* headers = @{@"X-Mashape-Authorization":…
Steelzeh
  • 284
  • 2
  • 13
0
votes
1 answer

Pass a PHP Variable into HTML Select "Value"

I am trying to pass some php via a dropdown in html , the php then needs to be used to aid the execution of more php. However I do not think it is working. Any suggestions would really be appreciated, its been bugging me a while. This is not the…
user3702402
  • 5
  • 1
  • 3
0
votes
1 answer

Mashape API PHP - No Data Displayed?

I am having trouble getting any data out of a mashape API, I have made the UNIREST POST but I am unable to echo the data back to myself, this is what the call should return; { "result": { "name": "The Elder Scrolls V: Skyrim", "score":…
user3702402
  • 5
  • 1
  • 3
0
votes
1 answer

Objective-C UNIRest has no response to GET Request

I am attempting the use the UNIRest API to run this get request in an iPhone application https://api.guildwars2.com/v1/guild_details.json?guild_name=The%20Legacy The code I am running is this NSDictionary* headers = @{@"accept":…
ablatt
  • 21
  • 3
0
votes
1 answer

Installing Unirest python module in Google App Engine

Hi i am new to GAE and python. I am trying to create small web application in GAE using python. I intend to use Unirest module in application. I followed instruction in this post and got following error. no module named poster.encode How can i…
Harikesh
  • 313
  • 3
  • 14
0
votes
1 answer

Laravel Mashape/Unirest API package and Interface

How do you implement interface for external package in Laravel? Say, I want to use Mashape/Unirest API to get analyse of text, but in future I would like to switch to other API provider and do not change to much in code. interface AnalyzerInterface…
0
votes
0 answers

Using composer/Unirest php with Github problems

My code works great on my local machine, but when I push my code to github, then download and unzip the folder and move it to my htdocs folder, it says class Unirest is not defined. I even tried rerunning php composer.phar update/install and it…
user2977732
  • 121
  • 1
  • 6
0
votes
1 answer

How to log UniRest Results

I am using UniRest for objective c, and I'm making a request to my server. #import #import "Essay.h" #import "grammarCheck.h" int main(int argc, const char * argv[]) { NSDictionary* headers = @{@"accept":…
Thomas Lai
  • 875
  • 4
  • 11
  • 19
0
votes
1 answer

PHP ARRAY and SUB ARRAYS

So i have the following array structure: { "_": { "APP_ID": "server_tracked" }, "success": true, "requestTime": "2013-09-14T15:05:28-07:00", "shard": "North_America:OTg0ZGYzNjA0OGYxNjAyNWUzZjVlNTQwZDk4YTdjNTYzMGE3NTA4Ng", "player": { …
0
votes
1 answer

Dynamically build a Unirest post request in Python

I'm writing a method to an API. The Unirest post call is of the form response = unirest.post("http://some.url.org/arg", { "X-Mashape-Authorization": "authCode" }, …
KBKarma
  • 132
  • 1
  • 10
0
votes
3 answers

Accessing data from API call (PHP)

I recently started working with an API from https://www.mashape.com/ and I believe that I've gotten the data that I need but I'm not quite sure exactly how I can use it. It returns (I believe) an object which I tried typecasting to an array but I…
Naughtlok
  • 3
  • 4
-1
votes
1 answer

Get Values from JSON within Array using condition in Java

I am using Unirest, to get all id's from an end point, My Array is like this: [ { "date": "2022-04-05", "timeIn": "2022-04-05 07:00:00", "timeOut": "2022-04-05 14:00:00", "createdAt": "2022-04-05 08:32:59", …
Taimoor Pasha
  • 192
  • 2
  • 3
  • 16
-1
votes
3 answers

Calling a function multiple times in a while loop

I am trying to get data from a function call and I am keeping it in a while loop so the function will be called again and again if data is not received. What I meant with the data is the data1,data2 and data3 arrays that I have returned from the…
Darshan
  • 102
  • 1
  • 14
-1
votes
1 answer

the difference between Postman and POST request in Java

I need to get some respones from some URL. For this purpose I use http://unirest.io/java.html and Java. Map map = new HashMap<>(); map.put(key1, value1); ... map.put(keyN, valueN); String authToken = "{token}"; HttpResponse
A user
  • 29
  • 1
  • 9
-1
votes
1 answer

Send the Date Formatted data from String via Unirest POST getting - Invalid input

I send some request with Deferred Date to a server. The POST request looks like: { "text":"texst", "deferred_date":"2019-09-14 14:00" } I send it via Postman or the Unirest in Java and have a 201 Accepted result. The server stores this date…
Evgenii Truuts
  • 349
  • 1
  • 5
  • 17
1 2 3
23
24