Advertisement
Guest User

aaja aaja ni aaja behja

a guest
Jan 22nd, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Flybits.api.Content.getAll().then(function(resultObj){
  2. // do things with the relevant Content instances
  3. console.log(resultObj.result);
  4. });
  5.  
  6.  
  7. Flybits.api.Content.getAll().then(function(resultObj){
  8. // assuming there is a Content instance in the response
  9. var contentInstance = resultObj.result[0];
  10.  
  11. // retrieve JSON body
  12. return contentInstance.getData();
  13. }).then(function(obj){
  14. // do stuff with body of Content instance.
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement