Перейти к основному содержанию
GET
/
v1
/
purchases
/
bulk
/
{purchase_id}
/
download
JavaScript
import Gmt from 'gmt-typescript-sdk';

const client = new Gmt({
  apiKey: process.env['GMT_API_KEY'], // This is the default and can be omitted
});

const response = await client.purchases.bulk.download('purchase_id');

console.log(response);

const content = await response.blob();
console.log(content);
"<string>"

Авторизации

x-api-key
string
header
обязательно

API-key that you received from Telegram Bot.

Параметры пути

purchase_id
string
обязательно

Ответ

200 - application/zip

ZIP archive containing accounts from the bulk purchase.

The response is of type file.