MCPcopy Index your code
hub / github.com/fabioberger/airtable-go

github.com/fabioberger/airtable-go @v3.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.1.0 ↗ · + Follow
63 symbols 161 edges 8 files 19 documented · 30%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Airtable Go Client Library

Installation

Make sure you have Golang v1.6 or higher installed. If not, install it now.

Fetch airtable-go:

go get github.com/fabioberger/airtable-go

Import airtable-go into your project:

import "github.com/fabioberger/airtable-go"

Usage

Create an instance of the airtable-go client:

import (
    "os"
    "github.com/fabioberger/airtable-go"
)

airtableAPIKey := os.Getenv("AIRTABLE_API_KEY")
baseID := "apphllLCpWnySSF7q" // replace this with your airtable base's id

client, err := airtable.New(airtableAPIKey, baseID)
if err != nil {
    panic(err)
}

You can now call methods on the client instance. All client methods are documented in the project's GoDoc page. You can also check out the stubbed and integration tests included in this project for working examples of all the client methods and options.

For Airtable specific documentation, see the interactive documentation at https://airtable.com/api.

Tests

Execute the following to run the stubbed out unit tests:

go test -v ./tests/stubbed_tests

In order to run the integration tests, you will need to copy this test Airtable base into your own Airtable account using the "copy base" button in the top right.

Next, set two environment variables corresponding to your Airtable API key and the baseID of your copy of the test Airtable base.

export AIRTABLE_TEST_API_KEY=YOUR_API_KEY
export AIRTABLE_TEST_BASE_ID=YOUR_TEST_BASE_ID

Now you can run the integration tests with:

go test -v ./tests/integration_tests

Versioning

This library uses Semantic Versioning.

Core symbols most depended-on inside this repo

ListRecords
called by 13
client.go
UpdateRecord
called by 5
client.go
request
called by 5
client.go
Error
called by 5
client.go
RetrieveRecord
called by 3
client.go
CreateRecord
called by 3
client.go
DestroyRecord
called by 3
client.go
isValidAirtableID
called by 3
utils/utils.go

Shape

Method 31
Function 17
Struct 15

Languages

Go100%

Modules by API surface

client.go18 symbols
tests/stubbed_tests/client_test.go14 symbols
tests/integration_tests/client_test.go13 symbols
example_test.go8 symbols
utils/utils.go5 symbols
tests/test_base/test_base.go3 symbols
field_types.go2 symbols

For agents

$ claude mcp add airtable-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact