Question Details

Unanswered
Line Notify get code for access token

I have wrote script to get code in python. It gives response 200 but in content it gives me html page rather than JSON here is my code url = "https://notify-bot.line.me/oauth/authorize" data = { 'response_type': 'code', 'client_id': self.client_id, 'redirect_uri': 'http://localhost:8017/page/linenotify', 'scope': 'notify', 'state': 'planetodooofficial', } headers = { 'Method': 'GET' } response = requests.get(url, data=data, headers=headers)

what shou i do to get JSON

0
Profile picture
Salil

Answers

0
Are you sure? question.vm