{
body: image,
encoding: null,
headers: {
Authorization: 'Basic api: JnqeqUjIAiEfghfhmx4oWfghff1L9UoVwh'
},
method: 'POST',
url: 'https://api.tinify.com/shrink',
}
var xhr = new XMLHttpRequest();
xhr.open('POST', 'https://api.tinify.com/shrink', true);
xhr.setRequestHeader('Authorization', 'Basic api: JnqeqUjIAiEfghfhmx4oWfghff1L9UoVwh')
xhr.send(image)