Questions tagged [mashape]

Mashape is an API marketplace where developers can find and consume cloud APIs, and that API providers can use to distribute, track and manage their public or private cloud services.

Mashape is an API marketplace where developers can find and consume cloud APIs, and that API providers can use to distribute, track and manage their public or private cloud services.

Developers that consume APIs have a unified place to consume a multitude of cloud APIs, tracking their usage analytics, and subscribe to pricing plans.

On the other side, developers that want to publish their cloud API to the public, or internally in private/partner mode, can use all the tools provided by Mashape to handle authentication, users, analytics and billing.

87 questions
38
votes
6 answers

java.lang.NoSuchFieldError: org.apache.http.message.BasicLineFormatter.INSTANCE from Mashape Unirest in Java application

I have a Maven Java project that uses Mashape Unirest for sending HTTP requests to other URLs. I am currently writing an integration test (using TestNG) that sends a normal HTTP request using Unirest. When I run the integration test through Maven…
ecbrodie
  • 11,246
  • 21
  • 71
  • 120
33
votes
4 answers

React Js require 'fs'

I have import fs from 'fs' and in my package.json I have Then I run the command > npm i fs > fs@0.0.2 node_modules/fs next in my React store I import 'fs' module import fs from 'fs' However when I try to use fs I don't see methods…
joe
  • 425
  • 1
  • 5
  • 9
30
votes
7 answers

How to parse JSON results from Unirest call

I'm using the Unirest library to retrieve JSON from a Mashape API. I have the call working using the following code: HttpResponse request = Unirest.get(URL) .header("X-Mashape-Authorization", MASHAPE_AUTH) .asJson(); This returns my…
user1636130
  • 1,615
  • 5
  • 29
  • 47
19
votes
1 answer

Netflix-Zuul vs Mashape-Kong

Both Zuul and kong serve as a good API gateway layer in a microservices architecture. What are some important differences between these two?
ChrisOdney
  • 6,066
  • 10
  • 38
  • 48
9
votes
1 answer

Get native REST service error in Unirest

We are using Unirest as REST client. Below is the sample code using which we are invoking REST service HttpResponse response = Unirest .post(url) .header(HEADER_CONTENT_TYPE, HEADER_VALUE_APPLICATON_JSON) .body(payload) …
sag
  • 5,333
  • 8
  • 54
  • 91
4
votes
0 answers

com.mashape.unirest.request.BaseRequest.asJson

please help me how to implement Zilyo API of Mashape in android Application. i am integrating Zilyo Mashape API in Android Application.but i am getting a some error. here is my code. try { request =…
Rinku Vashist
  • 355
  • 3
  • 14
4
votes
4 answers

Kong: Running Mashape Kong fails on Mac OS X

Today I installed Kong (API Management Layer) on my Mac OS X (Yosemite 10.10.5). I used the .pkg file which is available here. I followed the installation instructions and everything was successful. I also installed Cassandra using the information…
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51
3
votes
0 answers

Problem with the Android unirest library - static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier

I'm using the mashape unirest lirary to make POST HTTP calls in android, but when I tried to get the response I'm getting the issue No static field INSTANCE of type Lorg/apache/http/conn/ssl/AllowAllHostnameVerifier I think the issue is with the…
Kiran Suvarna
  • 271
  • 6
  • 21
3
votes
2 answers

Kong refuses to recognise custom plugin as enabled

I was developing a Custom plugin for Kong. To start off I followed guidelines listed in this tutorial http://streamdata.io/blog/developing-an-helloworld-kong-plugin/ Few changes that I made along the way were changing dependency in the rockspec file…
3
votes
1 answer

Ops, an error occurred

Mashape don't give me any support unless its working hours so i hope you can give me some answers I'm trying to upload a file throught my API. Dose anyone know why mashape generates this kind of error? what it means or how to fix it or avoid it. Its…
Endless
  • 34,080
  • 13
  • 108
  • 131
3
votes
1 answer

Convert the http response body to JSON format using Unirest C#

I am using mashape api: https://market.mashape.com/montanaflynn/dictionary Here's my code: HttpResponse response = Unirest.get("https://montanaflynn-dictionary.p.mashape.com/define?word=irony") .header("X-Mashape-Key", "my mashape…
Tomer
  • 61
  • 5
3
votes
1 answer

converting mashape api response to c# class

I am using mashape api for getting the speed post tracking information:- https://www.mashape.com/blaazetech/indian-post As this is in .NET c# following code is not getting complied:- Task> response =…
RSDC
  • 43
  • 3
3
votes
3 answers

java.lang.NoClassDefFoundError: org/apache/http/concurrent/FutureCallback

I am trying to use Unirest-Mashape to build java applications. This is my code: import com.mashape.unirest.http.*; public class PAskMe { public static void main(String args[]) throws Exception { HttpResponse response =…
dryairship
  • 6,022
  • 4
  • 28
  • 54
3
votes
2 answers

Mashape Imgur node.js image upload

Trying to upload users image but without success. HTML: Front-End JS: var fileInput = document.getElementById('gg_test_input'); fileInput.addEventListener('change', function(e) { var file = …
Pumych
  • 1,368
  • 3
  • 18
  • 31
2
votes
1 answer

Mapping a class to a unirest object and displaying response data

I am trying to display and map a response to a class from Unirest with .NET. I have followed this example on stack: Convert the http response body to JSON format using Unirest C# However, when running it, I get an error "Unable to cast object of…
1
2 3 4 5 6