This post will show you how to get Unirest-java running on your Android projects. Unirest is a lightweight HTTP client library with port available in many languages
This is a follow-up to “How to install Unirest using the Maven assembly plugin
”. The steps are similar, with the addition of a Maven (shader) plugin that relocates some packages in order to work around dependency errors when using the uber jar in an Android project. (In case you’re interested, the error you’ll get is ”java.lang.NoSuchFieldError: org.apache.http.message.BasicLineFormatter.INSTANCE”).
1. Follow Steps 1 and 2 from the Unirest-java/Maven tutorial.
Here’s a list of resources on how to make REST calls in different languages. (We also have this list of 40+ tutorials on how to create an API in different languages
If you dabble with one or more of these languages in your different projects, we highly recommend that you check out Unirest.io
, an open source lightweight HTTP client library. It’s goal is to provide a consistent way for developers to make HTTP calls across different languages (node.js
If you have suggested additions to…
Yesterday, we released our newest open-sourced project, which we named Unicorn. Unfortunately, that was also the name of two existing open sourced projects. We really dropped the ball, and have been working hard to clean up the mess. Our apologies to anyone in the Ruby or Python community who was confused or pissed off. Hopefully you can look past our mistake and see the value in this project.
Since yesterday, we have decided on a new name, Unirest, which we think is a great fit for the project. We also made a new website
, changed out all the…
UPDATE: We’ve got a lot of comments and suggestions on the ‘Unicorn’ naming. We apologize for the confusion and are working on finding a new name. Have a suggestion? Tweet us @mashape
UPDATE #2: We picked a new name, unirest.io
is up and running.
UPDATE #3: Check our latest post on “Unicorn has become Unirest
Here at Mashape, we use a lot of open source. Our tech stack includes a lot of popular frameworks and libraries which have allowed us to rapidly iterate and develop what we feel is the best cloud API proxy and marketplace the universe…
UPDATE (Dec 10, 2013): The instructions below are outdated. Please head to this post on how to call Mashape APIs in your Android projects.
One of the ways that Mashape facilitates easy consumption of APIs is by offering auto-generated client libraries for several programming languages, for each of the APIs. You can see these as a row of buttons lined up in the middle-right section of each API page in Mashape.
Auto-generated client libraries
This saves both the API provider and consumer / developer a huge amount of coding time and manpower, which allows them to attend to more important…