(oauth: OAuth, id: string)
| 8 | } |
| 9 | |
| 10 | async function plainFetchUser(oauth: OAuth, id: string): Promise<Record<string, any>> { |
| 11 | const params = buildParams(true); |
| 12 | params.user_id = id; |
| 13 | const twreq = await oauth.request('GET', 'https://api.twitter.com/1.1/users/show.json', params); |
| 14 | return twreq.json(); |
| 15 | } |
| 16 | |
| 17 | class UserCacheEntry { |
| 18 | status: Status; |
no test coverage detected