Last active
February 13, 2020 18:54
-
-
Save i001962/4860ba399be063d284206d8843665112 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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