Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to get the JWT for an unsupported API #36

Open
Ferdzz opened this issue Feb 2, 2021 · 1 comment
Open

Question: How to get the JWT for an unsupported API #36

Ferdzz opened this issue Feb 2, 2021 · 1 comment
Labels
question Further information is requested

Comments

@Ferdzz
Copy link

Ferdzz commented Feb 2, 2021

I've noticed that this library only supports Google Cloud Storage and Datastore so far. I need to send requests to the Calendar API through a service account. Is there an easy way to use this library to generate the JWT so that I can send these requests manually?

@adirburke
Copy link
Contributor

if you check out my fork, on the gmail branch I made a very hacked together CodeGen

and made an example of the calendar API, not sure if this will help you at all

For the JWT, you need to have the subscription parameter included in the JWT to the email address of the user's calendar account (check my master branch)

https://github.com/adirburke/GoogleCloudKit/blob/870edce00bdba51c7e904dcc270b8952bed1fe22/Core/Sources/CalTestGen.swift

@nathanfallet nathanfallet added the question Further information is requested label Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

3 participants