google_api_headers 4.4.3 copy "google_api_headers: ^4.4.3" to clipboard
google_api_headers: ^4.4.3 copied to clipboard

PlatformAndroid

A Flutter plugin for getting the headers required to call Google APIs with an app restricted API key

Google API Headers #

pub package docs MIT License GitHub Actions codecov Codacy Badge style: flutter_lints

Github-sponsors BuyMeACoffee Ko-Fi LiberaPay Patreon PayPal

A Flutter plugin for getting the headers required to call Google APIs with an app restricted API key.

Getting Started #

Add this to your project's pubspec.yaml file:

dependencies:
  google_api_headers: ^4.4.3
copied to clipboard

Usage #

Depending on the platform (iOS or Android), the function will return the required key and value pairs for calling Google APIs with keys that are restricted to an iOS or Android app.

import 'package:google_api_headers/google_api_headers.dart';

final headers = await GoogleApiHeaders().getHeaders();
copied to clipboard
28
likes
160
points
73k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.14 - 2025.03.29

A Flutter plugin for getting the headers required to call Google APIs with an app restricted API key

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, package_info_plus

More

Packages that depend on google_api_headers