export type GetApiV21AccountsAccountIdBulkSendListsBulkSendListIdArgs = {accountId: string, bulkSendListId: string}; export type GetApiV21AccountsAccountIdBulkSendListsBulkSendListIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Gets a specific bulk send list. * * GET /v2.1/accounts/{accountId}/bulk_send_lists/{bulkSendListId} */ export const getApiV21AccountsAccountIdBulkSendListsBulkSendListId = async (args: GetApiV21AccountsAccountIdBulkSendListsBulkSendListIdArgs, options?: GetApiV21AccountsAccountIdBulkSendListsBulkSendListIdOptions) => { const {baseUrl = "https://www.docusign.net/restapi", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/v2.1/accounts/${encodeURIComponent(String(args.accountId))}/bulk_send_lists/${encodeURIComponent(String(args.bulkSendListId))}${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };