Skip to content

Instantly share code, notes, and snippets.

@krisrak
Created Apr 15, 2014
Embed
What would you like to do?
IntelXDK Sandbox Service for exploring any API and create data binding
{
"Sandbox": {
"name": "API Explorer Sandbox",
"description": "Explore any Restful API and create data bindings",
"auth": "NA"
}
}
(function (credentials) {
var exports = {};
exports.get = function (params) {
var url = params.URL ;
return $.ajax({url: url});
};
exports.post = function (params) {
var url = params.URL ;
return $.ajax({url: url});
};
return exports;
})
{
"endpoints": [
{
"name": "Methods",
"methods": [
{
"MethodName": "get",
"Synopsis": "Make any GET API call and create data bindings",
"parameters": [
{
"Name": "URL",
"Required": "Y",
"Default": "http://",
"Type": "string",
"Description": "Enter full API URL with params incuding any auth/access_token."
}
]
},
{
"MethodName": "post",
"HTTPMethod": "POST",
"Synopsis": "Make any POST API call and create data bindings",
"parameters": [
{
"Name": "URL",
"Required": "Y",
"Default": "http://",
"Type": "string",
"Description": "Enter full API URL with params incuding any auth/access_token."
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment