Why not use this package (package:googleapis_auth) with Flutter applications? #616
|
So how do I use the |
Answered by
mattrltrent
Jan 17, 2025
Replies: 2 comments
0 replies
(1) If you need to use
|
0 replies
Answer selected by
kjxbyz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kjxbyz
(1) If you need to use
googleapis_authIf you want to use googleapis_auth, don't. They say use extension_google_sign_in_as_googleapis_auth instead directly in the package documentation.
(2) If you just want to use just your API key and raw HTTP
If you don't want to use a package, since you said you have your own API key, you can simply use the http package instead by plugging in your
API KEYvariable to requests to Google's endpoint directly.(3) The easiest way using an abstraction package with your API key
For even easier usage, consider the youtube_api Flutter package. This basically abstracts away any complexities. Here's an example blog post of this youtube_api package being …