MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / fetchFile

Function fetchFile

apps/web/services/slack/api/fetch_all_conversations.ts:132–139  ·  view source on GitHub ↗
(fileUrl: string, token: string)

Source from the content-addressed store, hash-verified

130};
131
132export const fetchFile = async (fileUrl: string, token: string) => {
133 if (!token) return await request.get(fileUrl);
134
135 const response = await request
136 .get(fileUrl)
137 .set('Authorization', 'Bearer ' + token);
138 return response;
139};
140
141export const fetchRepliesTyped = async (
142 threadTs: string,

Callers 1

processLinkFunction · 0.90

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected