Created
March 31, 2019 13:29
-
-
Save ar-anvd/41f4841aafce22942d5c815db75eb350 to your computer and use it in GitHub Desktop.
Error in frost api 409-The specified account is not verified.
This file contains 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
import requests, json | |
work = { | |
"name": "Title Test", | |
"datePublished": "2019-03-31 00:03:40.839346", | |
"dateCreated": "2019-03-31 00:03:40.839346", | |
"author": 'Test', | |
"tags": "Test", | |
"content": "Test" | |
} | |
headers = { | |
"Content-Type": "application/json", | |
"token": "token" | |
} | |
r = requests.post("https://api.poetnetwork.net/works", headers=headers, data=json.dumps(work)) | |
if r.status_code == 200: | |
print 'timestamp ok' | |
else: | |
print 'Error in frost api ' + str(r.status_code) + '-' + r.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace line 13 with token