You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The access_token.get method allows you to convert an OAUTH token into an access token for making API commands on a user's behalf for WebexTeams Integrations. However, currently the ciscospark package won't let you call this method unless you have already an API object, which is a problem since you need a token to make an API object even though you don't need a token to make this call!
Luckily, the constructor doesn't actually check if the token you give it is valid on creation. As a workaround, I currently initialise an API object with a fake token, use it to convert the OAUTH code into the new token and then use that new token to create another API object I'll use elsewhere. To demonstrate:
Ideally, I should be able to initialise the API by calling API = CiscoSparkAPI(client_id, client_secret, OAuthcode, redirect_uri) or something like that directly.
The text was updated successfully, but these errors were encountered:
further-reading
changed the title
Add ability to initialise API object using OATH details
Add ability to initialise API object using OAUTH details
Aug 6, 2018
@sQu4rks added this functionality via #76 , which has been merged into master. I will push a release to PyPI shortly with the new functionality. We still need tests and docs for the code.
Uh oh!
There was an error while loading. Please reload this page.
The access_token.get method allows you to convert an OAUTH token into an access token for making API commands on a user's behalf for WebexTeams Integrations. However, currently the ciscospark package won't let you call this method unless you have already an API object, which is a problem since you need a token to make an API object even though you don't need a token to make this call!
Luckily, the constructor doesn't actually check if the token you give it is valid on creation. As a workaround, I currently initialise an API object with a fake token, use it to convert the OAUTH code into the new token and then use that new token to create another API object I'll use elsewhere. To demonstrate:
Ideally, I should be able to initialise the API by calling
API = CiscoSparkAPI(client_id, client_secret, OAuthcode, redirect_uri)
or something like that directly.The text was updated successfully, but these errors were encountered: