From f3e1d61dc94c3eb2d2d453ecb57262dff76689c7 Mon Sep 17 00:00:00 2001 From: Charlie Arehart Date: Fri, 28 Jun 2024 20:16:32 -0500 Subject: [PATCH] Add ColdFusion (cfscript) example --- v2/harvest_api_sample.cfm | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 v2/harvest_api_sample.cfm diff --git a/v2/harvest_api_sample.cfm b/v2/harvest_api_sample.cfm new file mode 100644 index 0000000..e199be4 --- /dev/null +++ b/v2/harvest_api_sample.cfm @@ -0,0 +1,4 @@ +cfhttp( Url="https://api.harvestapp.com/v2/users/me" ) { + cfhttpparam( type="header", name="Authorization", value="Bearer my-access-token" ) + cfhttpparam( type="header", name="Harvest-Account-ID", value="my-account-id" )} +writeDump( deserializeJSON(cfhttp.FileContent) ) \ No newline at end of file