achmadzainulkarim

Untitled

Dec 9th, 2019
163
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. testApi(){
  2.         const data = {
  3.             "status" : 3,
  4.             "do_image" : "tmp/1575882104.jpeg",
  5.             "delivery_image" : "tmp/1575882104.jpeg",
  6.             "cash_received" : 2000
  7.         };
  8.         let url = "http://dev.superagen.id/api/v3/order/grosir/cash-received/2194";
  9.         const options = {
  10.             method: 'POST',
  11.             headers: { 'Authorization': 'Bearer token' },
  12.             data: data,
  13.             url,
  14.         };
  15.         axios(options);
  16.     }
RAW Paste Data