Chilkat Online Tools

PHP (Extension) / New FreshBooks / Download CSV Report

Back to Collection Items

<?php

include("chilkat_9_5_0.php");

$http->put_AuthToken('<access_token>');$success = $http->QuickGetSb('https://api.freshbooks.com/accounting/account/{{accountId}}/links/reports/{{downloadToken}}/invoice_details.csv',$sbResponseBody);
?>

Curl Command

curl -X GET
	-H "Authorization: Bearer <access_token>"
https://api.freshbooks.com/accounting/account/{{accountId}}/links/reports/{{downloadToken}}/invoice_details.csv

Postman Collection Item JSON

{
  "name": "Download CSV Report",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "https://api.freshbooks.com/accounting/account/{{accountId}}/links/reports/{{downloadToken}}/invoice_details.csv",
      "protocol": "https",
      "host": [
        "api",
        "freshbooks",
        "com"
      ],
      "path": [
        "accounting",
        "account",
        "{{accountId}}",
        "links",
        "reports",
        "{{downloadToken}}",
        "invoice_details.csv"
      ]
    }
  },
  "response": [
  ]
}