-
Notifications
You must be signed in to change notification settings - Fork 1
/
content.go
32 lines (31 loc) · 999 Bytes
/
content.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
29
30
31
32
package main
type Content struct {
Result []struct {
ImageVersions2 struct {
Candidates []struct {
Width int `json:"width"`
Height int `json:"height"`
URL string `json:"url"`
URLSignature struct {
Expires string `json:"expires"`
Signature string `json:"signature"`
} `json:"url_signature"`
} `json:"candidates"`
} `json:"image_versions2"`
OriginalHeight int `json:"original_height"`
OriginalWidth int `json:"original_width"`
Pk string `json:"pk"`
TakenAt int `json:"taken_at"`
VideoVersions []struct {
Type int `json:"type"`
Width int `json:"width"`
Height int `json:"height"`
URL string `json:"url"`
URLSignature struct {
Expires string `json:"expires"`
Signature string `json:"signature"`
} `json:"url_signature"`
} `json:"video_versions,omitempty"`
HasAudio bool `json:"has_audio,omitempty"`
} `json:"result"`
}