consts.nim 982 B

1234567891011121314151617181920212223
  1. import uri
  2. const
  3. lang* = "en-US,en;q=0.9"
  4. auth* = "Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw"
  5. htmlAccept* = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3"
  6. jsonAccept* = "application/json, text/javascript, */*; q=0.01"
  7. base* = parseUri("https://twitter.com/")
  8. apiBase* = parseUri("https://api.twitter.com/1.1/")
  9. timelineUrl* = "i/profiles/show/$1/timeline/tweets"
  10. timelineMediaUrl* = "i/profiles/show/$1/media_timeline"
  11. listUrl* = "$1/lists/$2/timeline"
  12. listMembersUrl* = "$1/lists/$2/members"
  13. profilePopupUrl* = "i/profiles/popup"
  14. profileIntentUrl* = "intent/user"
  15. searchUrl* = "i/search/timeline"
  16. tweetUrl* = "status"
  17. videoUrl* = "videos/tweet/config/$1.json"
  18. tokenUrl* = "guest/activate.json"
  19. cardUrl* = "i/cards/tfw/v1/$1"
  20. pollUrl* = cardUrl & "?cardname=poll2choice_text_only&lang=en"