Categorygithub.com/openaq/openaq-go
repositorypackage
0.0.0-20230928175700-6c70f3819e8c
Repository: https://github.com/openaq/openaq-go.git
Documentation: pkg.go.dev

# README

OpenAQ Golang API Client

This library is in early development. DO NOT USE UNTIL 1.0.0 RELEASE

A low-level golang wrapper around the OpenAQ v3 REST API.

Usage

Client

A client is initialized with a configuration struct which holds some global configuration for interacting with the API.

client := NewClient(Config{
    APIKey: "my-openaq-api-key-123456-7890"
})

All methods take a context.Context as the first parameter to allow for context level cancellation and deadlines.