yakupadakli / python-unsplash

Python wrapper for the Unsplash API.
MIT License
157 stars 40 forks source link

Unable to authenticate #19

Open coolbunnyx opened 9 months ago

coolbunnyx commented 9 months ago

I registered an application on unsplash.com, and it associates with following information Application ID Access Key Secret key Redirect URI

I tried to match the above information to the arguments as follows client_id = "Application ID" client_secret = "Secret key" redirect_uri = "Redirect URI" code = ""

auth = Auth(client_id, client_secret, redirect_uri, code=code) api = Api(auth)

However, I am getting Error message (1) if I use Access Key as "code", and getting Error message (2) if leaving "code" as none. Error Message (1) Unsplash Authentication Error: (invalid_client) Client authentication failed due to unknown client, no client authentication included, or unsupported authentication method.

Error Message (2) OAuth error: The access token is invalid

mainpyp commented 5 months ago

Hey @coolbunnyx , did you fix this problem because I am having the same issue?