Comments (5)
Hi @MinistrBob!
The problem is that there is a slight error in the documentation which was fixed up on the develop branch but not on yet on master. Please see #2
from zoomus.
I do that:
`from zoomus import ZoomClient
import json
client = ZoomClient('nlPuETI4SNCVK7r5Lkl8EQ', 'gluuFR42imJ96VFpkmy1Yve0DBGeHUwwBZDG')
for user in json.loads(client.user.list().content)['users']:
user_id = user['id']
print(client.meeting.list(host_id=user_id))`
Anyway error:
`C:\MyGit\GivinToolsPython\env\Scripts\python.exe C:/MyGit/GivinToolsPython/zoomtest.py
Traceback (most recent call last):
File "C:/MyGit/GivinToolsPython/zoomtest.py", line 6, in
for user in json.loads(client.user.list().content)['users']:
KeyError: 'users'
Process finished with exit code 1`
If I run code in debug, when getting client.user.list().content = b'{"code":124,"message":"Invalid access token."}'
Where should I get API_KEY & API_SECRET ? I get it in zoom profile (see.picture)
from zoomus.
I'm getting the same error, and my syntax is correct but I keep getting: Invalid access token.
How you solve it?
from zoomus.
(Unfortunately, I can’t insert screenshots here :( )
You need to use JWT authorization (I use this one; here it’s enough to have API_KEY and API_SECRET to fulfill API requests).
Create an application in the Zoom development center with JWT authorization - https://marketplace.zoom.us/user/build
In the application itself, on the App Credentials tab, there are API_KEY and API_SECRET so they are used
Further I use zoomus here is an example code.
from zoomus import ZoomClient
import json
#client = ZoomClient('API_KEY', 'API_SECRET')
client = ZoomClient('7dtr8NY67777777770TQnfeQ', 'TyAcDcUBO2777777777Q71vAsOv')
print(client.user.list().content)
print(json.loads(client.user.list().content))
print(json.loads(client.user.list().content)['users'])
print("="*60)
for user in json.loads(client.user.list().content)['users']:
print(user)
user_id = user['id']
print(client.meeting.list(host_id=user_id))
It would be great if it were in README.MD zoomus
from zoomus.
Many Thanks for your reply @MinistrBob. It's very helpful.
from zoomus.
Related Issues (20)
- generate_jwt() needs str(token, "uft-8") HOT 5
- Missing get_by_email in UserComponentV2 HOT 1
- "Invalid access token" issue HOT 13
- Support additional API hosts HOT 3
- Account group retrieval HOT 1
- How to Delete recordings HOT 1
- How to list all the meetings and its info HOT 1
- Authorization header has bytes type marker HOT 3
- When i speak..my video automatically turns to hd mode.Why? and How to fix that? HOT 1
- documentation example does not specify meeting ID HOT 2
- Addition of sites(s) for zoom phone
- Getting invite text? HOT 4
- Getting Max retries exceeded with url
- client.meeting.update returning "Request body should be a valid JSON object"
- API to retrieve a new access token if expired when doing the request HOT 1
- migrate authentication from JWT to Server-to-Server OAuth HOT 11
- Refresh token is broken HOT 1
- I am getting the below error after the script runs for about 30 mins, anyone knows how to fix this? HOT 1
- check if meeting has started or ended
- AttributeError: 'UserComponentV2' object has no attribute 'get_settings'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoomus.