Anyone know what I’m doing wrong trying to POST to Micro.blog: Getting: <Response [400]> {“error”:“invalid_request”,“error_description”:“No verified site could be found for token."}
CODE:
def post_micro(content): API_ENDPOINT = “micro.blog/micropub” API_KEY = ‘MYKEY’ header = {‘Authorization’ : ‘Bearer ' + API_KEY } content = ‘h=entry&content=Hello%20world.’ content = bytes(content,‘utf-8’) r = requests.post(url = API_ENDPOINT,params=header,data=content) pprint.pprint(r) result = r.text print(result)