Skip to content

Instantly share code, notes, and snippets.

@ardok
Created August 28, 2012 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ardok/3504935 to your computer and use it in GitHub Desktop.
Save ardok/3504935 to your computer and use it in GitHub Desktop.
This a doc for StackMob's JS SDK custom code (docs getting-started-cc-sdk)
**JS SDK**
```javascript
<script type="text/javascript">
StackMob.customcode('hello_world', {}, 'GET' //skip third param for default 'GET'. This can also be either 'POST', 'PUT', or 'DELETE'
{
success: function(jsonResult) {
//jsonResult is the JSON object: { "msg": "Hello, world!" }
},
error: function(failure) {
//doh!
}
});
</script>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment