atget

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 2 Imported by: 0

README

atget

CLI to get airtable records.

Usage

Usage: atget --token=STRING --base=STRING --table=STRING <filter>

Arguments:
  <filter>    A formula used to filter records. see https://support.airtable.com/docs/formula-field-reference

Flags:
  -h, --help            Show context-sensitive help.
      --token=STRING    Airtable API token ($AIRTABLE_TOKEN).
  -b, --base=STRING     Base name.
  -t, --table=STRING    Table name.
      --version
$ atget -b company -t employees '{email}="scott@example.com"'
{"first_name":"scott","last_name":"tiger","email":"scott@example.com"}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) GetRecords

func (client *Client) GetRecords(baseName string, tableName string, filter string) (*airtable.Records, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL