MCPcopy Create free account
hub / github.com/Treeki/BirdBridge / plainFetchUser

Function plainFetchUser

utils/userCache.ts:10–15  ·  view source on GitHub ↗
(oauth: OAuth, id: string)

Source from the content-addressed store, hash-verified

8}
9
10async 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
17class UserCacheEntry {
18 status: Status;

Callers 1

fetchUserMethod · 0.85

Calls 2

buildParamsFunction · 0.90
requestMethod · 0.80

Tested by

no test coverage detected