Created
April 15, 2014 23:37
-
-
Save krisrak/10789224 to your computer and use it in GitHub Desktop.
IntelXDK Sandbox Service for exploring any API and create data binding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Sandbox": { | |
"name": "API Explorer Sandbox", | |
"description": "Explore any Restful API and create data bindings", | |
"auth": "NA" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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; | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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