-
Notifications
You must be signed in to change notification settings - Fork 3
/
media.go
28 lines (25 loc) · 1.08 KB
/
media.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package patreon
// MediaFields is all fields in the Media Attributes struct
var MediaFields = getObjectFields(Media{}.Attributes)
// Media is a file uploaded to patreon.com, usually an image.
type Media struct {
Type string `json:"type"`
ID string `json:"id"`
Attributes MediaAttributes `json:"attributes"`
}
type MediaAttributes struct {
CreatedAt NullTime `json:"created_at"`
DownloadURL string `json:"download_url"`
FileName string `json:"file_name"`
ImageURLs interface{} `json:"image_urls"`
Metadata interface{} `json:"metadata"`
Mimetype string `json:"mimetype"`
OwnerID string `json:"owner_id"`
OwnerRelationship string `json:"owner_relationship"`
OwnerType string `json:"owner_type"`
SizeBytes int `json:"size_bytes"`
State string `json:"state"`
UploadExpiresAt NullTime `json:"upload_expires_at"`
UploadParameters interface{} `json:"upload_parameters"`
UploadUrl string `json:"upload_url"`
}