{"library":"python-upwork-oauth2","title":"Upwork OAuth2 Python Client","description":"Python bindings for the Upwork API using OAuth2. Current version 3.2.0, supports Python >=3.8. This library replaces the old OAuth1-based client. Release cadence is irregular.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install python-upwork-oauth2"],"cli":null},"imports":["from upwork import UpworkClient","from upwork.oauth2 import ClientCredentialsGrant"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom upwork import UpworkClient\nfrom upwork.oauth2 import ClientCredentialsGrant\n\nclient_id = os.environ.get('UPWORK_CLIENT_ID', '')\nclient_secret = os.environ.get('UPWORK_CLIENT_SECRET', '')\n\ngrant = ClientCredentialsGrant(\n    client_id=client_id,\n    client_secret=client_secret\n)\ntoken = grant.get_token()\nclient = UpworkClient(token=token)\n# Now use client to call API endpoints\nprint(client.get_user_info())","lang":"python","description":"Authenticate using Client Credentials Grant and create an UpworkClient.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}