java

Using Unirest (Java) for your Android projects

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”). Let’s start: 1.  Follow Steps 1 and 2 from the Unirest-java/Maven tutorial.  Once you’re done with those 2...

30+ ways to make REST calls in Node.js, PHP, Python, Rails, Obj-C, .NET, and Java / Android

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, Ruby, PHP, Java, Python, Objective-C, .NET) If you have suggested additions to the links below, please tweet to @mashape and we’ll...

Unicorn has become Unirest

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 docs, and...

Releasing Unicorn into the wild

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 has...

How to Use Mashape’s Auto-Generated Java client library for your Android apps

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. 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 things like running...