airtable alternatives and similar packages
Based on the "Third-party APIs" category.
Alternatively, view airtable alternatives based on common mentions on social networks and blogs.
-
go-openai
OpenAI ChatGPT, GPT-3, GPT-4, DALL·E, Whisper API wrapper for Go -
goamz
Popular fork of goamz which adds some missing API calls to certain packages. -
webhooks
:fishing_pole_and_fish: Webhook receiver for GitHub, Bitbucket, GitLab, Gogs -
githubql
Package githubv4 is a client library for accessing GitHub GraphQL API v4 (https://docs.github.com/en/graphql). -
twitter-scraper
Scrape the Twitter Frontend API without authentication with Golang. -
lark
Feishu(飞书)/Lark Open API Go SDK, Support ALL Open API and Event Callback. -
openaigo
OpenAI GPT3/3.5 ChatGPT API Client Library for Go, simple, less dependencies, and well-tested -
gostorm
GoStorm is a Go library that implements the communications protocol required to write Storm spouts and Bolts in Go that communicate with the Storm shells. -
hipchat (xmpp)
A golang package to communicate with HipChat over XMPP -
clarifai
DEPRECATED: please use https://github.com/Clarifai/clarifai-go-grpc -
go-lark
An easy-to-use SDK for Feishu and Lark Open Platform (Messaging API only) -
hipchat
This project implements a Go client library for the Hipchat API. -
go-trending
Go library for accessing trending repositories and developers at Github. -
simples3
Simple no frills AWS S3 Golang Library using REST with V4 Signing (without AWS Go SDK) -
go-tgbot
Golang telegram bot API wrapper, session-based router and middleware -
cachet
Go(lang) client library for Cachet (open source status page system).
Clean code begins in your IDE with SonarLint
Do you think we are missing an alternative of airtable or a related project?
README
Golang Airtable API
A simple #golang package to access the Airtable API.
Table of contents
Installation
The Golang Airtable API has been tested compatible with Go 1.13 on up.
go get github.com/mehanizm/airtable
Basic usage
Initialize client
You should get your_api_token
in the airtable account page
client := airtable.NewClient("your_api_token")
Get table
To get the your_database_ID
you should go to main API page and select the database.
table := client.GetTable("your_database_ID", "your_table_name")
List records
To get records from the table you can use something like this
records, err := table.GetRecords().
FromView("view_1").
WithFilterFormula("AND({Field1}='value_1',NOT({Field2}='value_2'))").
WithSort(sortQuery1, sortQuery2).
ReturnFields("Field1", "Field2").
InStringFormat("Europe/Moscow", "ru").
Do()
if err != nil {
// Handle error
}
Add records
recordsToSend := &airtable.Records{
Records: []*airtable.Record{
{
Fields: map[string]interface{
"Field1": "value1",
"Field2": true,
},
},
},
}
receivedRecords, err := table.AddRecords(recordsToSend)
if err != nil {
// Handle error
}
Get record by ID
record, err := table.GetRecord("recordID")
if err != nil {
// Handle error
}
Update records
To partial update one record
res, err := record.UpdateRecordPartial(map[string]interface{}{"Field_2": false})
if err != nil {
// Handle error
}
To full update records
toUpdateRecords := &airtable.Records{
Records: []*airtable.Record{
{
Fields: map[string]interface{
"Field1": "value1",
"Field2": true,
},
},
{
Fields: map[string]interface{
"Field1": "value1",
"Field2": true,
},
},
},
}
updatedRecords, err := table.UpdateRecords(toUpdateRecords)
if err != nil {
// Handle error
}
Delete record
res, err := record.DeleteRecord()
if err != nil {
// Handle error
}
Bulk delete records
To delete up to 10 records
records, err := table.DeleteRecords([]string{"recordID1", "recordsID2"})
if err != nil {
// Handle error
}
Special thanks
Inspired by [Go Trello API](github.com/adlio/trello)