I'm trying to get access to the Upwork API, using Python. I'm using the official OAuth2 Python library (link), I've followed the installation procedure and I'm running the file "example/myapp.py" (link) as it's indicated in the instructions. I've changed the "client_id" from "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" for the field "Key" in my API key and "client_secret" from "xxxxxxxxxxxxx" for the field "Secret" in my API key.
The main question that I have is what should it be my "redirect_uri"? In the documentation of the API it says: "Redirect URI, must be equal or similar to the callback specified in the key settings. Required for `authorization_code` grant." (link). I've tried two things:
The program provides me with "authorization_url", but when I insert it in my browser in both cases I get the error message: "Missing or invalid redirect_uri parameter value".
I haven't used much OAuth2.0, so it might be something simple to fix. But given that I only want to get my data in my Python program, I'm not sure what should be my "Callback URI" and "redirect_uri".
Thanks for your help!
Solved! Go to Solution.