Replace tokens with guest accounts, swap endpoints

This commit is contained in:
Zed
2023-08-19 00:25:14 +02:00
parent d7ca353a55
commit 3572dd7771
12 changed files with 159 additions and 382 deletions

View File

@@ -17,11 +17,8 @@ type
Api* {.pure.} = enum
tweetDetail
tweetResult
timeline
userTimeline
photoRail
search
userSearch
list
listBySlug
listMembers
@@ -36,9 +33,11 @@ type
remaining*: int
reset*: int
Token* = ref object
tok*: string
init*: Time
GuestAccount* = ref object
id*: string
oauthToken*: string
oauthSecret*: string
# init*: Time
lastUse*: Time
pending*: int
apis*: Table[Api, RateLimit]