mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Merge branch 'intent-userid'
This commit is contained in:
commit
b0a5e38b3f
5 changed files with 47 additions and 2 deletions
|
|
@ -41,6 +41,12 @@ proc getProfile*(username: string): Future[Profile] {.async.} =
|
|||
url = userShow ? ps
|
||||
result = parseUserShow(await fetch(url, oldApi=true), username)
|
||||
|
||||
proc getProfileById*(userId: string): Future[Profile] {.async.} =
|
||||
let
|
||||
ps = genParams({"user_id": userId})
|
||||
url = userShow ? ps
|
||||
result = parseUserShowId(await fetch(url, oldApi=true), userId)
|
||||
|
||||
proc getTimeline*(id: string; after=""; replies=false): Future[Timeline] {.async.} =
|
||||
let
|
||||
ps = genParams({"userId": id, "include_tweet_replies": $replies}, after)
|
||||
|
|
|
|||
Loading…
Reference in a new issue