FLUTTER ECOSYSTEM

zeshuaro/google_api_headers

一個用於取得呼叫 Google API 所需標頭的 Flutter 外掛程式,適用於使用應用程式限制 API 金鑰的情況

google_api_headers 專案封面
Stars
12
Forks
56
最近推送(UTC)
2026年9月19日
專案狀態
未封存
Joshua Tang GitHub avatar
GITHUB User

Joshua Tang ↗

語言DartKotlinHTMLRubyPythonSwiftObjective-C

技術主題

此儲存庫發佈的套件

使用的依賴

依賴清單 6 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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: ^5.4.1

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