Mashape Blog

Rumors aboard Mashape's spaceship

Chris Ismael
This sample code snippet below is CORS-enabled so you don’t have to worry about cross-domain requests. $.ajax({ url: 'MASHAPE-URL', // The URL to the API. You can get this by clicking on "Show CURL example" from an API profile type: 'POST', // The HTTP Method data: {}, // Additional parameters here datatype: 'json', success: function(data) { alert(JSON.stringify(data)); }, error: function(err) { alert(err); }, beforeSend: function(xhr) { xhr.setRequestHeader("X-Mashape-Authorization", "YOUR-MASHAPE-KEY"); // Enter here your Mashape key } }); Source: https://gist.github.com/thefosk/5024297
Chris Ismael
Mashape Codecademy Badge Last month, Codecademy announced a special “API track” that focus on courses teaching budding developers to code applications that consume APIs. Yesterday Codecademy has grown that list to 56 more APIs, including Mashape! What is Codecademy? Codecademy is a platform that provides a way for developers to teach; and would-be developers to learn how to code.  It provides course-creation tools, as well as “badges” (awards) for developers when they finish certain exercises. The great thing about Codecademy’s API track is that it not only teaches you how to code, but it also let’s you learn…
Chris Ismael
One of the top requests we get from API providers in Mashape is to add a section where they can go beyond just plain text when providing more in-depth information about their APIs (e.g. introduction, usage guidelines, sample codes, etc).  This requires a level of formatting that simply cannot be achieved with just plain text. Also, having information in one place, as opposed to having several browser tabs open to read through the API usage information, can be quite a time-saver. We have added a “Getting Started” section for your APIs in Mashape.  It supports GitHub Flavored Markdown. Yoda…
Chris Ismael
This video tutorial shows how you can add billing to your API in minutes, through Mashape’s Billing Addon. How to Monetize your APIs in minutes using Mashape’s Billing Addon from Chris Ismael on Vimeo.…
Chris Ismael
This is a quick video tutorial on how to add your API to Mashape.  By adding your API to Mashape, you make it easy for developers to discover and test your API.  You are also one step away from adding a billing mechanism to your API. How to Add an API to Mashape from Chris Ismael on Vimeo. Join us in Facebook, Twitter, or email us at support@mashape.com if you have any questions!…
Chris Ismael
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…
Chris Ismael
We’d like to invite our friendly hackers doing their Hackathon now in http://www.facebook.com/groups/win8hack/ to try our API wares! To whet your appetite, here’s an example code that uses Facebook and Chatterbox API to analyze your friends’ status messages. You can download the source code here.  Let us know if you have any questions! Good luck guys!…
Chris Ismael
This is a sample app that demonstrates how to consume OAuth-protected Mashape APIs in Windows 8/RT.  This example uses a Twitter search endpoint in Mashape. Although this example uses Windows 8/C#, it is based on the same steps indicated in our “Authenticate with OAuth” documentation for REST, PHP, Python, Ruby, Objective-C, and Java/Android. For these languages, we auto-generate the endpoint’s ready-to-use libraries for your convenience.  A huge time-saver! Steps to consume OAuth-protected Mashape APIs We’d love to hear from you about Mashape’s OAuth support.  You can talk to us through Facebook or email us at support@mashape.com
Chris Ismael
This is a tutorial on how to add your API(s) to Mashape.  Do note that things change quite often so if you’re reading this from the future, some things might have changed.  But we’ll update this as often as we can so everyone’s on the same page (literally!). Before we start, you would need a Mashape account.  (You can skip this part if you’ve done this already).  Go to http://www.mashape.com/ and click on the button in the upper-right hand section of the page that says “Join Us”.  You’ll also have the option to sign up using your GitHub account. After…
Chris Ismael
UPDATE (Oct 28, 2013): The post below is already outdated.  To consume Mashape APIs through node.js, we recommend that you use Unirest for node.js UPDATE (Feb 27, 2013):  Please note that we have improved the way authentication keys are handled in Mashape.  The header value below will be replaced by either the new Testing or Production Keys.  Read this post to learn more. — Hi guys, here’s a short example on how you can call APIs in Mashape through Node.js / REST.  It’s pretty straightforward. You just need to remember that you need to make a secure call using https://,…
< newer posts older posts >