Advertisement
medmond919

Client Call

May 18th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. var client = require('./lib/client');
  2.  
  3. This works >>>>
  4.  
  5.  
  6. //Get authorization Token
  7. client.authorize('00000', function (err, auth) {
  8. //List Buckets
  9. client.listBuckets(auth, function (err, resp) {
  10. console.log(resp);
  11. });
  12. });
  13.  
  14. This is what seems logical to me >>>>
  15.  
  16. //Get authorization Token
  17. client.authorize('account#', function (err, auth) {});
  18.  
  19. //List Buckets
  20. client.listBuckets(auth, function (err, resp) {
  21. console.log(resp);
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement