Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         var options = {
  2.             url: base_url+'/api/authorize'  ,
  3.             method: 'POST',
  4.             form: {
  5.                 UserName: username,
  6.                 Password: password,
  7.             },
  8.             headers: {
  9.                 "Accept": "application/json",
  10.                 "X-Requested-With": "XMLHttpRequest",
  11.             },
  12.         };
  13.         get.concat(options, function(err, res, data) {
  14.             console.log(data);
  15.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement