exportTransactions()
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / exportTransactions
Function: exportTransactions()
Section titled “Function: exportTransactions()”exportTransactions(
transactions,options):string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:19061
Export transactions to CSV or JSON format
Parameters
Section titled “Parameters”transactions
Section titled “transactions”Transactions to export
options
Section titled “options”Export options
Returns
Section titled “Returns”string
Formatted string in the specified format
Example
Section titled “Example”const csv = exportTransactions(history.transactions, { format: 'csv' })downloadFile('transactions.csv', csv, 'text/csv')
const json = exportTransactions(history.transactions, { format: 'json', prettyPrint: true,})