forked from sivchari/gotwtr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
expansion.go
30 lines (27 loc) · 1.26 KB
/
expansion.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
package gotwtr
type Expansion string
const (
ExpansionAttachmentsPollIDs Expansion = "attachments.poll_ids"
ExpansionAttachmentsMediaKeys Expansion = "attachments.media_keys"
ExpansionAuthorID Expansion = "author_id"
ExpansionEntitiesMentionsUserName Expansion = "entities.mentions.username"
ExpansionGeoPlaceID Expansion = "geo.place_id"
ExpansionInReplyToUserID Expansion = "in_reply_to_user_id"
ExpansionReferencedTweetsID Expansion = "referenced_tweets.id"
ExpansionReferencedTweetsIDAuthorID Expansion = "referenced_tweets.id.author_id"
ExpansionPinnedTweetID Expansion = "pinned_tweet_id"
ExpansionInvitedUserIDs Expansion = "invited_user_ids"
ExpansionSpeakerIDs Expansion = "speaker_ids"
ExpansionCreatorID Expansion = "creator_id"
ExpansionHostIDs Expansion = "host_ids"
ExpansionContextAnnotations Expansion = "context_annotations"
ExpansionTopicIDs Expansion = "topic_ids"
ExpansionOwnerID Expansion = "list.owner_id"
)
func expansionsToString(es []Expansion) []string {
slice := make([]string, len(es))
for i, e := range es {
slice[i] = string(e)
}
return slice
}