const axios = require("axios");
const API_URL="https://translate.rozetta-api.io/api/v1/callback";
async function putCallback(accessKey, nonce, signature, callbackUrl) {
const resp = await axios({
method: 'put',
url: API_URL,
timeout: 10000,
headers: {accessKey,nonce, signature},
data: {callbackUrl: callbackUrl}
});
if (resp.status >= 200 && resp.status < 300)
return true;
return false;
}