oauth 2.0 - instagram api keep raise 'You must provide a client_id' exception when I use python-instagram library -


i registered app in instagram developer dashboard , tried use python-instagram library made facebook.

after ran sample_app.py code, accessed test website(localhost:8515) , logged in using instagram id. however, can't access code because of exception "you must provide client_id"

i tried same thing using library( https://github.com/seraphicer/python-instagram-ext) because pull requested original library , maintaining it.

i've resorted doing myself; couldn't python-instagram work. ditch entire library. way many bugs lately, , it's not being maintained, think.

@classmethod def exchange_code_for_access_token(cls, code, redirect_uri, **kwargs):     url = u'https://api.instagram.com/oauth/access_token'     data = {         u'client_id': cls.get_client_id(),         u'client_secret': cls.get_client_secret(),         u'code': code,         u'grant_type': u'authorization_code',         u'redirect_uri': redirect_uri     }      response = requests.post(url, data=data)      account_data = json.loads(response.content)      return account_data 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -