mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Rework list api
This commit is contained in:
parent
51c6605d3f
commit
35bb5f9132
7 changed files with 38 additions and 36 deletions
|
|
@ -9,13 +9,13 @@ proc getGraphProfile*(username: string): Future[Profile] {.async.} =
|
|||
js = await fetch(graphUser ? {"variables": $variables})
|
||||
result = parseGraphProfile(js, username)
|
||||
|
||||
proc getGraphList*(name, list: string): Future[List] {.async.} =
|
||||
proc getGraphListBySlug*(name, list: string): Future[List] {.async.} =
|
||||
let
|
||||
variables = %*{"screenName": name, "listSlug": list, "withHighlightedLabel": false}
|
||||
js = await fetch(graphList ? {"variables": $variables})
|
||||
result = parseGraphList(js)
|
||||
|
||||
proc getGraphListById*(id: string): Future[List] {.async.} =
|
||||
proc getGraphList*(id: string): Future[List] {.async.} =
|
||||
let
|
||||
variables = %*{"listId": id, "withHighlightedLabel": false}
|
||||
js = await fetch(graphListId ? {"variables": $variables})
|
||||
|
|
|
|||
Loading…
Reference in a new issue