How to get details from an Authorized site( Using Basic Auth )

 https.get method is used
 Add url of the site
 Under authorization add type as 'Basic Auth' and add username , password
 Add required headers
 If any parameters add it under the params

Example Format : 
https.get({
    url: ' ',
    authorization:{
        type:'Basic Auth',
        username:'',
        password:''
    },
    headers: {
        'ACCESS-TOKEN': '',
        'Content-Type': 'application/json',
        'Accept': 'application/json',
    },
    params:{
        
           }

});

Leave a comment

Your email address will not be published. Required fields are marked *