-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattachment.go
More file actions
24 lines (22 loc) · 774 Bytes
/
attachment.go
File metadata and controls
24 lines (22 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package airtablewatcher
// AirtableAttachment is a single airtable attachment
type AirtableAttachment struct {
// unique attachment id
ID string `json:"id,omitempty"`
// url, e.g. "https://dl.airtable.com/foo.jpg"
URL string `json:"url,omitempty"`
// filename, e.g. "foo.jpg"
Filename string `json:"filename,omitempty"`
// file size, in bytes
Size int64 `json:"size,omitempty"`
// content type, e.g. "image/jpeg"
Type string `json:"type,omitempty"`
// Width in pixels
Width int64 `json:"width,omitempty"`
// Height in pixels
Height int64 `json:"height,omitempty"`
}
// AirtableAttachments is a structure used to upload attachments to airtable.
//
// It can be used in an Update/Set request, or creating a record
type AirtableAttachments []AirtableAttachment