Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Flybits.api.Content.getAll().then(function(resultObj){
- // do things with the relevant Content instances
- console.log(resultObj.result);
- });
- Flybits.api.Content.getAll().then(function(resultObj){
- // assuming there is a Content instance in the response
- var contentInstance = resultObj.result[0];
- // retrieve JSON body
- return contentInstance.getData();
- }).then(function(obj){
- // do stuff with body of Content instance.
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement