nitter/src/consts.nim

62 lines
1.9 KiB
Nim
Raw Normal View History

2021-12-27 01:37:38 +00:00
# SPDX-License-Identifier: AGPL-3.0-only
2020-06-01 00:16:24 +00:00
import uri, sequtils
const
auth* = "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA"
api = parseUri("https://api.twitter.com")
2020-06-24 13:03:18 +00:00
activate* = $(api / "1.1/guest/activate.json")
2021-01-07 21:04:19 +00:00
2020-06-01 00:16:24 +00:00
listMembers* = api / "1.1/lists/members.json"
2020-06-17 18:46:45 +00:00
userShow* = api / "1.1/users/show.json"
2020-06-16 22:20:34 +00:00
photoRail* = api / "1.1/statuses/media_timeline.json"
2020-06-01 00:16:24 +00:00
search* = api / "2/search/adaptive.json"
2021-01-07 21:04:19 +00:00
timelineApi = api / "2/timeline"
tweet* = timelineApi / "conversation"
timeline* = timelineApi / "profile"
mediaTimeline* = timelineApi / "media"
listTimeline* = timelineApi / "list.json"
graphql = api / "graphql"
graphUser* = graphql / "E4iSsd6gypGFWx2eUhSC1g/UserByScreenName"
graphList* = graphql / "ErWsz9cObLel1BF-HjuBlA/ListBySlug"
graphListId* = graphql / "JADTh6cjebfgetzvF3tQvQ/List"
2020-06-01 00:16:24 +00:00
timelineParams* = {
"include_profile_interstitial_type": "0",
"include_blocking": "0",
"include_blocked_by": "0",
2020-06-16 22:20:34 +00:00
"include_followed_by": "0",
2020-06-01 00:16:24 +00:00
"include_want_retweets": "0",
"include_mute_edge": "0",
"include_can_dm": "0",
"include_can_media_tag": "1",
"skip_status": "1",
"cards_platform": "Web-12",
"include_cards": "1",
"include_composer_source": "false",
"include_ext_alt_text": "true",
"include_reply_count": "1",
"tweet_mode": "extended",
"include_entities": "true",
"include_user_entities": "true",
"include_ext_media_color": "false",
"include_ext_media_availability": "true",
"send_error_codes": "true",
"simple_quoted_tweet": "true",
2020-06-16 22:20:34 +00:00
"ext": "mediaStats",
2020-06-01 00:16:24 +00:00
"include_quote_count": "true"
}.toSeq
searchParams* = {
"query_source": "typed_query",
"pc": "1",
"spelling_corrections": "1"
}.toSeq
## top: nothing
## latest: "tweet_search_mode: live"
## user: "result_filter: user"
## photos: "result_filter: photos"
## videos: "result_filter: videos"