cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
447
Views
0
Helpful
4
Replies

about token

1360393739
Level 1
Level 1

I have some questions to ask about tokens. How the token is written to the SDK, or it does not need to be written to the SDK. And when I used the code in the demo to get the collection of calendar meetings, I got an error with InternalError. Excuse me why this is.

4 Replies 4

jonahmarty1
Level 1
Level 1

If you have questions about tokens and their integration with an SDK, it's important to understand that tokens are typically used for authentication purposes. Tokens are generated by an authentication service and are included in your requests to authenticate and authorize access.

In many cases, the SDK may handle token management internally, meaning you might not need to manually write or manage tokens within the SDK. Instead, you may need to provide authentication details (like client ID, client secret, or other credentials) to the SDK, and it takes care of token handling behind the scenes.

Regarding the InternalError you encountered while using the code to retrieve a collection of calendar meetings, this error typically suggests an issue on the server side. It could be due to a temporary problem with the service, incorrect API endpoint, or an issue with the authentication token.

To troubleshoot:

  1. Double-check your authentication credentials and ensure they are valid.
  2. Verify that the code is making requests to the correct API endpoint.
  3. Check the service's status to see if there are any reported outages or issues.

Raffaele Lagana
Cisco Employee
Cisco Employee

Can you specify which SDK you are using and also which code demo you are following? Please provide links if possible.

Generally, you will need to create an OAuth Integration in order to create access tokens that can then be used with our SDKs. But there are some other ways to create access tokens too, depending on your use case. Integrations is the most commonly used option.

Here's my integration,

single <Authenticator> (named("oAuth")) {
val clientId: String = "Cabcb6e600be461dfb425397a4abc8062681a18982e8c5c173786e8c76a9445ff"
val clientSecret: String = ""
val redirectUri: String = ""
val scope: String = "identity:things_read spark:all webexsquare:get_conversation spark-admin:people_read spark-admin:people_write meeting:schedules_read meeting:schedules_write"
val email = "1360393739@qq.com"
OAuthWebViewAuthenticator(clientId, clientSecret, scope, redirectUri, email)
}
factory {
Webex(androidApplication(), get(named("oAuth")))
}The clientSecret redirectUri parameters also have specific values in the code.After using this to make a request, the returned token does not have the permission to create a meeting, and an InternalError is still reported when retrieving the list

@1360393739 Does the user who authorizes the integration have the necessary Meetings Licenses? 
What's the error that you get when trying to create the meeting? Also, what "list" are you getting the InternalError with?

Please provide more details.