cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
557
Views
0
Helpful
3
Replies

How to create first webex meeting

dezou
Cisco Employee
Cisco Employee

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

1 Accepted Solution

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.

View solution in original post

3 Replies 3

dtibbe
VIP
VIP

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

dezou
Cisco Employee
Cisco Employee

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

 

 

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.