Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
Step-by-Step Guide
1. Set Up Your Django Project
First, create a new Django project and app if you haven't already:
BASH
django-admin startproject myproject
cd myproject
python manage.py startapp zoomapp
2. Install Required Libraries
Install the requests library, which will be used to make HTTP requests to the Zoom API:
BASH
pip install requests
3. Configure Your Django App
settings.py
Add zoomapp to your INSTALLED_APPS in myproject/settings.py:
PYTHON
INSTALLED_APPS = [
...
'zoomapp',
]
urls.py
Include the zoomapp URLs in your main urls.py:
PYTHON
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('zoom/', include('zoomapp.urls')),
]
4. Create Views for OAuth
views.py
Create the necessary views in zoomapp/views.py:
PYTHON
import requests
from django.shortcuts import redirect, render
from django.http import JsonResponse
from django.conf import settings
# Replace these with your actual Zoom app credentials
CLIENT_ID = 'your_zoom_client_id'
CLIENT_SECRET = 'your_zoom_client_secret'
REDIRECT_URI = 'http://localhost:8000/zoom/callback/'
def zoom_login(request):
auth_url = (
f"https://zoom.us/oauth/authorize?response_type=code&client_id={CLIENT_ID}"
f"&redirect_uri={REDIRECT_URI}&scope=recording:read"
)
return redirect(auth_url)
def zoom_callback(request):
code = request.GET.get('code')
token_url = 'https://zoom.us/oauth/token'
headers = {'Authorization': f'Basic {CLIENT_ID}:{CLIENT_SECRET}'}
data = {
'grant_type': 'authorization_code',
'code': code,
'redirect_uri': REDIRECT_URI
}
response = requests.post(token_url, headers=headers, data=data)
tokens = response.json()
access_token = tokens.get('access_token')
request.session['access_token'] = access_token
return redirect('zoom_recordings')
def zoom_recordings(request):
access_token = request.session.get('access_token')
if not access_token:
return redirect('zoom_login')
headers = {'Authorization': f'Bearer {access_token}'}
user_url = 'https://api.zoom.us/v2/users/me/recordings'
response = requests.get(user_url, headers=headers)
recordings = response.json()
return JsonResponse(recordings)
def index(request):
return render(request, 'zoomapp/index.html')
5. Create URL Patterns
urls.py
Create URL patterns in zoomapp/urls.py:
PYTHON
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('login/', views.zoom_login, name='zoom_login'),
path('callback/', views.zoom_callback, name='zoom_callback'),
path('recordings/', views.zoom_recordings, name='zoom_recordings'),
]
6. Create Templates
index.html
Create a template for the home page in zoomapp/templates/zoomapp/index.html:
HTML
<!DOCTYPE html>
<html>
<head>
<title>Zoom Integration</title>
</head>
<body>
<h1>Zoom Integration</h1>
<a href="{% url 'zoom_login' %}">Fetch Zoom Recordings</a>
</body>
</html>
7. Run the Django Server
Migrate the Database:
BASH
python manage.py migrate
Run the Server:
BASH
python manage.py runserver
Access the Application:
Open your browser and go to http://localhost:8000/.
8. Test the Integration
Click on the Fetch Button:
This will redirect you to the Zoom login page.
Log in with an Account that Has Recording Access:
Use an account with the necessary permissions (Pro, Business, or Enterprise).
Authorize the App:
Authorize the app to access your recordings.
View Recordings:
After authorization, you should be redirected back to your Django app, and the recordings should be fetched and displayed.
Conclusion
This complete example demonstrates how to integrate Zoom OAuth with a Django application to fetch meeting recordings. Make sure to replace your_zoom_client_id and your_zoom_client_secret with your actual Zoom app credentials. Also, ensure that the REDIRECT_URI matches the one you configured in the Zoom App Marketplace.
Oops! We were unable to complete your request. Please try again. (4,700)
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team