import pybitflyer
API_KEY = "XXXXXXXXXXXXX"
API_SECRET = "XXXXXXXXXXXXXXXXXXXX"
if __name__ == '__main__':
api = pybitflyer.API(api_key = API_KEY, api_secret = API_SECRET)
chat = api.getchats()
print(str(chat[:3]))
[{'nickname': 'UserD11D621', 'date': '2017-08-16T13:52:44.453', 'message': 'It's okay because there is a guardian deity at 47'}, {'nickname': 'Big Gala', 'date': '2017-08-16T13:52:47.753', 'message': 'I overcame the train that I couldn't see because I was drunk'}, {'nickname': 'Mochiroll', 'date': '2017-08-16T13:52:47.65', 'message': 'Don't Don't Don't(^o^)\u3000 Ugoka'}]
Recommended Posts