Upwork API support to Flask
You can use get_access_token method to get the current access token and access token secret, that can be stored in DB and used for access to the client later, if necessary:
if odesk.is_authorized(): access_token, access_token_secret = odesk.get_access_token()
You can use get_client method to get the client:
if odesk.is_authorized(): c = odesk.get_client() c.team.get_teamrooms()
Or you can use the client even if the current user is not authorized, but you have the access token and access token secret:
if not odesk.is_authorized(): c = odesk.get_client(access_token, access_token_secret) c.team.get_teamrooms()
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.