Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios get request authorization header

axios.get(this.prod_v2_url + 'orders/progress_order_validation/' + this.id, {
   headers: {
     'Authorization': `Bearer ${this.api_token}`,
     'Accept'       : 'application/json'
    }
}).then((response) => {
  this.results = response.data.data.drafts
  console.table(this.results)
});
 
PREVIOUS NEXT
Tagged: #axios #request #authorization #header
ADD COMMENT
Topic
Name
5+3 =