mirror of
https://github.com/zedeus/nitter.git
synced 2024-06-08 08:09:21 +00:00
9 lines
241 B
Nim
9 lines
241 B
Nim
import jsony
|
|
import ../types/graphql, user
|
|
from ../../types import User
|
|
|
|
proc parseGraphUser*(json: string): User =
|
|
let raw = json.fromJson(GraphUser)
|
|
result = toUser raw.data.user.result.legacy
|
|
result.id = raw.data.user.result.restId
|