# OAuth Python Not working

**URL:** <https://devforum.zoom.us/t/oauth-python-not-working/83581>\
**Category:** API and Webhooks\
**Created:** [February 22, 2023, 7:17pm UTC](https://devforum.zoom.us/t/oauth-python-not-working/83581 "2023-02-22T19:17:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blase.sacus](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@blase.sacus](https://devforum.zoom.us/u/blase.sacus)\
**Post date:** [February 22, 2023, 7:17pm UTC](https://devforum.zoom.us/t/oauth-python-not-working/83581/1 "2023-02-22T19:17:31Z")

</div>

I wrote the below script to get the Access Token for an app that I am working on. I am getting an HTTP status code of 200 but the URI response I am getting is "[https://zoom.us/signin?\_x\_zm\_rtaid="](https://zoom.us/signin?_x_zm_rtaid=%22). The access code is not being added to the URI.

I verified my credentials so it feels like there is some type of permissioning issue. Any help would be appreciated.

import requests

Set the app credentials  
client\_id = “YOUR\_CLIENT\_ID”  
client\_secret = “YOUR\_CLIENT\_SECRET”  
redirect\_uri = “YOUR\_REDIRECT\_URI”

Set the authorization endpoint URL  
auth\_endpoint = “[Error - Zoom](https://zoom.us/oauth/authorize)”

Make a GET request to the authorization endpoint with the app credentials  
response = requests.get(auth\_endpoint, params={  
“response\_type”: “code”,  
“client\_id”: client\_id,  
“redirect\_uri”: redirect\_uri  
})

Print the URL of the response, which should include the authorization code  
print(response.url)

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [February 23, 2023, 1:46am UTC](https://devforum.zoom.us/t/oauth-python-not-working/83581/2 "2023-02-23T01:46:25Z")

</div>

@blase.sacus,

Welcome to the Zoom Developer Forum! I am happy to help here. Please see this helpful post with an OAuth python example :

> [@Zoom Oauth python example](https://devforum.zoom.us/t/zoom-oauth-python-example/78181/2):
>
> Hi, @asanford, Welcome to the Zoom Developer Platform – happy to help. Please see the below OAuth2 Python example script smiley #!/usr/bin/env python from flask import Flask, abort, request from uuid import uuid4 import requests import requests.auth import urllib CLIENT\_ID = "YOUR\_ZOOM\_CLIENT\_ID" # Fill this in with your client ID CLIENT\_SECRET = "YOUR\_ZOOM\_SECRET" # Fill this in with your client secret REDIRECT\_URI = "http://localhost:65010/zoom\_callback" app = Flask(\_\_name\_\_) @app.route…

Let us know if this helps or if you have any questions.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [February 26, 2024, 5:22pm UTC](https://devforum.zoom.us/t/oauth-python-not-working/83581/3 "2024-02-26T17:22:36Z")

</div>

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
