mobilefish

Untitled

Sep 18th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. this.getPriceBookList = function () {
  2.                  console.log("PricingService getPriceBookList entered"); //Line1
  3.                              
  4.                              this.callTokenAPI().then(function onSuccess(response) {
  5.                              
  6.                               console.log("callTokenAPI success");  //Line 2                               
  7.                                 return $http({
  8.                                             url: "someUrl",
  9.                                             method: 'GET',
  10.                                             withCredentials:true,
  11.                                             headers: { "Content-Type": "application/json; charset=UTF-8" }
  12.                                 });
  13.                                                                
  14.                                 }, function onFailure(error) {
  15.                                 console.log("callTokenAPI failure in pricingservice");                             
  16.                               });
  17.                              
  18.                                                                        
  19.                   console.log("PricingService getPriceBookList exited");     //Line 3          
  20.                
  21.             };
Add Comment
Please, Sign In to add comment