I'm trying to set the user's email as verified programmatically.
But the following doesn't seems to work.
Is there a way to do this or is currently not supported?
3c817e01-1e02-407d-9208-6e49b5a732ab-image.png
Could somebody show me an example of making a post with the write API?
I tried integrating Reddit and Nodebb (Horrible idea, I know.) and I still don't know how to make a post with a user token.
Look this :
import requests
class auto_topic():
def __init__(self,api_url,bearer_token):
self.api_url = api_url
self.bearer_token = bearer_token
def create(self,uid,cid,title,content):
headers = {"Authorization": "Bearer %s"%self.bearer_token}
topic = {'uid':uid,'cid':cid,'title':title,'content':content}
response = requests.post(self.api_url,headers = headers,data=topic)
return response