a-marenkov / gsheets

A Dart library for working with Google Sheets API.
Other
79 stars 31 forks source link

Use api key or user token to access the sheets #35

Closed saeedek closed 3 years ago

saeedek commented 3 years ago

Hi, I didn't see any other example, but is it possible not to use a service account and instead use an API key or user token to access the sheets?

Thanks.

a-marenkov commented 3 years ago

Hi, I didn't see any other example, but is it possible not to use a service account and instead use an API key or user token to access the sheets?

Thanks.

Hi @saeedek,

Sorry for the delay with reply.

Currently only service account is supported.

gsheets uses googleapis_auth under the hood, so it's possible to add other options available in the package, but i'm not sure that they are practical. The API key flow will give access to public data only (according to the docs).

seanocali commented 1 year ago

Hi, I didn't see any other example, but is it possible not to use a service account and instead use an API key or user token to access the sheets? Thanks.

Hi @saeedek,

Sorry for the delay with reply.

Currently only service account is supported.

gsheets uses googleapis_auth under the hood, so it's possible to add other options available in the package, but i'm not sure that they are practical. The API key flow will give access to public data only (according to the docs).

Why is this not practical? Accessing public sheets is a very valid use case.