05-16-2022 06:43 AM
Hi, everyone
Firstly,It's my first time using using HTTP protocol to post a request
When I try to run these code
>>> r = requests.get('https://webexapis.com/v1/meetings')
>>> r.status_code
It returns 401
Is any examples to create a meeting by http request
Thanks
Solved! Go to Solution.
05-17-2022 10:26 AM
In such a case, you'd have to create an integration as described at https://developer.webex.com/docs/integrations
You have to run the OAuth flow at least once: You will receive a long-duration access token along with a refresh token to extend the access token's validity.
05-16-2022 12:31 PM
To create a meeting, you have to send a post request along with the required parameters as described at https://developer.webex.com/docs/api/v1/meetings/create-a-meeting.
You seem to send a get request which would list your meetings (see https://developer.webex.com/docs/api/v1/meetings/list-meetings).
Be aware that you have to pass a valid bearer token along with your request. For testing, you may copy a 12h valid developer token at https://developer.webex.com/docs/getting-started
05-17-2022 12:50 AM
thanks, I create a meeting successfully
But the developer token just valid for 12 hours
How can I get a long time token and refresh it automaticlly in python script
My usage scenario is that a valid token can always be used in code for automated tests
05-17-2022 10:26 AM
In such a case, you'd have to create an integration as described at https://developer.webex.com/docs/integrations
You have to run the OAuth flow at least once: You will receive a long-duration access token along with a refresh token to extend the access token's validity.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide