Skip to content

Instantly share code, notes, and snippets.

@dharmatech
Created May 11, 2023 03:09
Show Gist options
  • Select an option

  • Save dharmatech/2b1ff874e0554a9f95190d06aa6bd15b to your computer and use it in GitHub Desktop.

Select an option

Save dharmatech/2b1ff874e0554a9f95190d06aa6bd15b to your computer and use it in GitHub Desktop.
$base = 'https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/dts'
$rest_url = '/dts_table_2?filter=record_date:gte:{0},transaction_catg:eq:{1}&fields=record_date,transaction_type,transaction_catg,transaction_today_amt&page[number]=1&page[size]=300'
$date = '2023-01-01'
$result_ssa = Invoke-RestMethod -Method Get -Uri ($base + $rest_url -f $date, 'SSA - Benefits Payments')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment