Po.et Documentation
Technical documentation for the Po.et Network
MY_API_TOKEN
with the API Token you copied above).
$ export API_URL="https://api.poetnetwork.net"
$ export API_TOKEN="MY_API_TOKEN"
$ curl -H "Content-Type: application/json" -H "token: $API_TOKEN" -X POST -d \
'{
"name":"Bitcoin: A Peer-to-Peer Electronic Cash System",
"dateCreated": "2008-10-31T00:00:00.001Z",
"datePublished":"2018-10-31T12:12:12.000Z",
"author": "Satoshi Nakamoto",
"tags": "Bitcoin",
"content": "Abstract. A purely peer-to-peer version of electronic cash would allow..."
}' $API_URL/works
workId
(save it for the next section).YOUR_WORKID
with the workId
you received above).
curl -H "Content-Type: application/json" -H "token: $API_TOKEN" -X GET $API_URL/works/YOUR_WORKID
workId
.
curl -H "Content-Type: application/json" -H "token: $API_TOKEN" -X GET $API_URL/works
Congratulations! You have successfully registered and retrieved your first claim on the Po.et Network!