Google API Headers

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

pub package docs MIT License Build and Deploy codecov pedantic

Getting Started

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

  google_api_headers: ^1.1.0


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();