notes: use userRestId api token pool

This commit is contained in:
HookedBehemoth 2022-06-29 14:37:44 +02:00
parent 4de795bd36
commit 5bcce76bd5
2 changed files with 1 additions and 2 deletions

View File

@ -55,7 +55,7 @@ proc getGraphArticle*(id: string): Future[Article] {.async.} =
let
variables = %*{"twitterArticleId": id}
url = graphArticle ? {"variables": $variables}
result = parseGraphArticle(await fetch(url, Api.article))
result = parseGraphArticle(await fetch(url, Api.userRestId))
proc getListTimeline*(id: string; after=""): Future[Timeline] {.async.} =
if id.len == 0: return

View File

@ -20,7 +20,6 @@ type
userRestId
userScreenName
status
article
RateLimit* = object
remaining*: int