Skip to content

Instantly share code, notes, and snippets.

@krisrak
Created April 15, 2014 23:37
Show Gist options
  • Save krisrak/10789224 to your computer and use it in GitHub Desktop.
Save krisrak/10789224 to your computer and use it in GitHub Desktop.
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