Skip to content

Instantly share code, notes, and snippets.

@i001962
Last active February 13, 2020 18:54
Show Gist options
  • Select an option

  • Save i001962/4860ba399be063d284206d8843665112 to your computer and use it in GitHub Desktop.

Select an option

Save i001962/4860ba399be063d284206d8843665112 to your computer and use it in GitHub Desktop.
// example calling Cryptowerk.com API to register a hash to blockchains
// APIKey space APICred
const axios = require('axios');
var postData = {
hashes: "1111111111111111111111111111111111111111111111111111111111111111"
};
let axiosConfig = {
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'yourcwapikey yourcwapicreds'
}
};
axios.post('https://developers.cryptowerk.com/platform/API/v8/register', postData, axiosConfig)
.then((res) => {
console.log("RESPONSE RECEIVED: ", res.data.documents);
})
.catch((err) => {
console.log("AXIOS ERROR: ", err);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment