import requests clientId = 'xxxxxxxxxxxxxxxxxxxx' clientSecret = 'xxxxxxxxxxxxxxxxxxxx' topicId = 'xxx' msg = 'Hello, Typetalk!' res = requests.post("https://typetalk.in/oauth2/access_token", { 'client_id': clientId, 'client_secret': clientSecret, 'grant_type': 'client_credentials', 'scope': 'topic.post' }) accessToken = res.json()['access_token'] requests.post('https://typetalk.in/api/v1/topics/'