import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const response = await client.beta.files.content('file_id');
console.log(response);
const content = await response.blob();
console.log(content);{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const response = await client.beta.files.content('file_id');
console.log(response);
const content = await response.blob();
console.log(content);{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}