Skip to content

Instantly share code, notes, and snippets.

@ar-anvd
Created March 31, 2019 13:29
Show Gist options
  • Save ar-anvd/41f4841aafce22942d5c815db75eb350 to your computer and use it in GitHub Desktop.
Save ar-anvd/41f4841aafce22942d5c815db75eb350 to your computer and use it in GitHub Desktop.
Error in frost api 409-The specified account is not verified.
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
@ar-anvd
Copy link
Author

ar-anvd commented Mar 31, 2019

Replace line 13 with token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment