Chilkat Online Tools

PowerBuilder / New FreshBooks / Time Entry Details

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
integer li_Id
integer li_Identity_id
string ls_Timer
integer li_Is_logged
string ls_Started_at
string ls_Created_at
integer li_Duration
integer li_Client_id
integer li_Project_id
string ls_Pending_client
string ls_Pending_project
string ls_Pending_task
string ls_Task_id
string ls_Service_id
string ls_Note
integer li_Active
integer li_Billable
integer li_Billed
integer li_Internal
string ls_Retainer_id
string ls_Highlight
integer li_Time_entry_id
integer j
integer li_Count_j
string ls_Name
integer li_Value
integer li_Total
integer li_Per_page
integer li_Page
integer li_Pages
integer li_Total_logged
integer li_Total_unbilled
string ls_Aggregations
string ls_Download_token
integer i
integer li_Count_i

// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.

loo_Http = create oleobject
// Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
li_rc = loo_Http.ConnectToNewObject("Chilkat.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

// Adds the "Authorization: Bearer <access_token>" header.
loo_Http.AuthToken = "<access_token>"
loo_Http.SetRequestHeader("Content-Type","application/json")

loo_SbResponseBody = create oleobject
// Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat.StringBuilder")

li_Success = loo_Http.QuickGetSb("https://api.freshbooks.com/comments/business/{{businessId}}/time_entries/search",loo_SbResponseBody)
if li_Success = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
// Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
li_rc = loo_JResp.ConnectToNewObject("Chilkat.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Http.LastHeader
    Write-Debug "Failed."
    destroy loo_Http
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)

// {
//   "time_entries": [
//     {
//       "id": 47654134,
//       "identity_id": 37256,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2016-08-16T20:00:00Z",
//       "created_at": "2019-04-18T20:50:28Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": null,
//       "note": "Stuff",
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47634496,
//       "identity_id": 1882548,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2016-08-16T20:00:00Z",
//       "created_at": "2019-04-18T15:16:32Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": null,
//       "note": "Stuff",
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47630482,
//       "identity_id": 1882548,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2019-04-19T04:00:00Z",
//       "created_at": "2019-04-18T14:11:34Z",
//       "duration": 10800,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": 3575792,
//       "note": null,
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47630476,
//       "identity_id": 1882548,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2019-04-15T04:00:00Z",
//       "created_at": "2019-04-18T14:11:34Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": 3575792,
//       "note": null,
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47654186,
//       "identity_id": 37256,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2019-04-18T20:00:00Z",
//       "created_at": "2019-04-18T20:51:22Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": null,
//       "note": "Stuff",
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47630480,
//       "identity_id": 1882548,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2019-04-18T04:00:00Z",
//       "created_at": "2019-04-18T14:11:34Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": 3575792,
//       "note": null,
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47630478,
//       "identity_id": 1882548,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2019-04-17T04:00:00Z",
//       "created_at": "2019-04-18T14:11:34Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": 3575792,
//       "note": null,
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47632920,
//       "identity_id": 1882548,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2016-08-16T20:00:00Z",
//       "created_at": "2019-04-18T14:58:17Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": null,
//       "note": "Stuff",
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     },
//     {
//       "id": 47632874,
//       "identity_id": 1882548,
//       "timer": null,
//       "is_logged": true,
//       "started_at": "2016-08-16T20:00:00Z",
//       "created_at": "2019-04-18T14:57:34Z",
//       "duration": 7200,
//       "client_id": 31006,
//       "project_id": 2976412,
//       "pending_client": null,
//       "pending_project": null,
//       "pending_task": null,
//       "task_id": null,
//       "service_id": null,
//       "note": "Stuff",
//       "active": true,
//       "billable": false,
//       "billed": false,
//       "internal": false,
//       "retainer_id": null,
//       "highlight": null
//     }
//   ],
//   "meta": {
//     "total": 9,
//     "per_page": 30,
//     "page": 1,
//     "pages": 1,
//     "total_logged": 0,
//     "total_unbilled": 0
//   },
//   "aggregations": null,
//   "download_token": null,
//   "abilities": [
//     {
//       "time_entry_id": 47654134,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47634496,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47630482,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47630476,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47654186,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47630480,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47630478,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47632920,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     },
//     {
//       "time_entry_id": 47632874,
//       "abilities": [
//         {
//           "name": "can_edit",
//           "value": true
//         },
//         {
//           "name": "can_delete",
//           "value": true
//         }
//       ]
//     }
//   ]
// }

// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

li_Total = loo_JResp.IntOf("meta.total")
li_Per_page = loo_JResp.IntOf("meta.per_page")
li_Page = loo_JResp.IntOf("meta.page")
li_Pages = loo_JResp.IntOf("meta.pages")
li_Total_logged = loo_JResp.IntOf("meta.total_logged")
li_Total_unbilled = loo_JResp.IntOf("meta.total_unbilled")
ls_Aggregations = loo_JResp.StringOf("aggregations")
ls_Download_token = loo_JResp.StringOf("download_token")
i = 0
li_Count_i = loo_JResp.SizeOfArray("time_entries")
do while i < li_Count_i
    loo_JResp.I = i
    li_Id = loo_JResp.IntOf("time_entries[i].id")
    li_Identity_id = loo_JResp.IntOf("time_entries[i].identity_id")
    ls_Timer = loo_JResp.StringOf("time_entries[i].timer")
    li_Is_logged = loo_JResp.BoolOf("time_entries[i].is_logged")
    ls_Started_at = loo_JResp.StringOf("time_entries[i].started_at")
    ls_Created_at = loo_JResp.StringOf("time_entries[i].created_at")
    li_Duration = loo_JResp.IntOf("time_entries[i].duration")
    li_Client_id = loo_JResp.IntOf("time_entries[i].client_id")
    li_Project_id = loo_JResp.IntOf("time_entries[i].project_id")
    ls_Pending_client = loo_JResp.StringOf("time_entries[i].pending_client")
    ls_Pending_project = loo_JResp.StringOf("time_entries[i].pending_project")
    ls_Pending_task = loo_JResp.StringOf("time_entries[i].pending_task")
    ls_Task_id = loo_JResp.StringOf("time_entries[i].task_id")
    ls_Service_id = loo_JResp.StringOf("time_entries[i].service_id")
    ls_Note = loo_JResp.StringOf("time_entries[i].note")
    li_Active = loo_JResp.BoolOf("time_entries[i].active")
    li_Billable = loo_JResp.BoolOf("time_entries[i].billable")
    li_Billed = loo_JResp.BoolOf("time_entries[i].billed")
    li_Internal = loo_JResp.BoolOf("time_entries[i].internal")
    ls_Retainer_id = loo_JResp.StringOf("time_entries[i].retainer_id")
    ls_Highlight = loo_JResp.StringOf("time_entries[i].highlight")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("abilities")
do while i < li_Count_i
    loo_JResp.I = i
    li_Time_entry_id = loo_JResp.IntOf("abilities[i].time_entry_id")
    j = 0
    li_Count_j = loo_JResp.SizeOfArray("abilities[i].abilities")
    do while j < li_Count_j
        loo_JResp.J = j
        ls_Name = loo_JResp.StringOf("abilities[i].abilities[j].name")
        li_Value = loo_JResp.BoolOf("abilities[i].abilities[j].value")
        j = j + 1
    loop
    i = i + 1
loop


destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl -X GET
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
https://api.freshbooks.com/comments/business/{{businessId}}/time_entries/search

Postman Collection Item JSON

{
  "name": "Time Entry Details",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json",
        "type": "text",
        "disabled": true
      }
    ],
    "url": {
      "raw": "https://api.freshbooks.com/comments/business/{{businessId}}/time_entries/search",
      "protocol": "https",
      "host": [
        "api",
        "freshbooks",
        "com"
      ],
      "path": [
        "comments",
        "business",
        "{{businessId}}",
        "time_entries",
        "search"
      ],
      "query": [
        {
          "key": "group_by",
          "value": "clients",
          "description": "Group by clients, vendor, ",
          "disabled": true
        },
        {
          "key": "include_jwt",
          "value": "true",
          "description": "Boolean, includes JWT token if true. ",
          "disabled": true
        },
        {
          "key": "timezone",
          "value": "America%2FToronto",
          "disabled": true
        },
        {
          "key": "billable",
          "value": "1",
          "disabled": true
        },
        {
          "key": "billed",
          "value": "1",
          "disabled": true
        },
        {
          "key": "project_id",
          "value": "2980874",
          "description": "Filter by Project using `project_id`",
          "disabled": true
        },
        {
          "key": "identity_id",
          "value": "37256",
          "description": "Filter by Staff using `identity_id`",
          "disabled": true
        },
        {
          "key": "date_gte",
          "value": "2019-03-01T05%3A00%3A00Z",
          "disabled": true
        },
        {
          "key": "date_lte",
          "value": "2019-04-01T03%3A59%3A59Z",
          "disabled": true
        },
        {
          "key": "sort",
          "value": "-started_at",
          "disabled": true
        }
      ]
    },
    "description": "A detailed summary of how much time you and/or your team tracked over a period of time. \n\n*Reminder to not use `Content-Type` when calling for time-entry details*"
  },
  "response": [
    {
      "name": "Time Entry Details",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json",
            "type": "text",
            "disabled": true
          }
        ],
        "url": {
          "raw": "https://api.freshbooks.com/comments/business/{{businessId}}/time_entries/search",
          "protocol": "https",
          "host": [
            "api",
            "freshbooks",
            "com"
          ],
          "path": [
            "comments",
            "business",
            "{{businessId}}",
            "time_entries",
            "search"
          ],
          "query": [
            {
              "key": "group_by",
              "value": "clients",
              "description": "Group by clients, vendor, ",
              "disabled": true
            },
            {
              "key": "include_jwt",
              "value": "true",
              "description": "Boolean, includes JWT token if true. ",
              "disabled": true
            },
            {
              "key": "timezone",
              "value": "America%2FToronto",
              "disabled": true
            },
            {
              "key": "billable",
              "value": "1",
              "disabled": true
            },
            {
              "key": "billed",
              "value": "1",
              "disabled": true
            },
            {
              "key": "project_id",
              "value": "2980874",
              "description": "Filter by Project using `project_id`",
              "disabled": true
            },
            {
              "key": "identity_id",
              "value": "37256",
              "description": "Filter by Staff using `identity_id`",
              "disabled": true
            },
            {
              "key": "date_gte",
              "value": "2019-03-01T05%3A00%3A00Z",
              "disabled": true
            },
            {
              "key": "date_lte",
              "value": "2019-04-01T03%3A59%3A59Z",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "-started_at",
              "disabled": true
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "nginx"
        },
        {
          "key": "Content-Type",
          "value": "application/vnd.api+json"
        },
        {
          "key": "X-Version",
          "value": "1904.25.0"
        },
        {
          "key": "X-NewRelic-App-Data",
          "value": "PxQBWV5TCBABVllUBAQOU10TGhE1AwE2QgNWEVlbQFtcCxYnRA9QFg1ZWU4FDFZFVRYSBxlDUhULRERQBxVNFlkPXT1dVkBAWgBKPkIEUhAHXhkTAxBXRkIHBFhDWFoDO1RYRxAPBhFvEV0DSltcEB9VFVEfUANRUQcOVVVaDgoHVldXAQMbS1UdFFZUUlUHVlJaUQsJBFZWV11DHQdSDhdTag=="
        },
        {
          "key": "Access-Control-Allow-Origin",
          "value": "*"
        },
        {
          "key": "Expires",
          "value": "Tue, 24 Apr 2018 18:32:22 GMT"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "Via",
          "value": "1.1 google"
        },
        {
          "key": "Via",
          "value": "1.1 varnish"
        },
        {
          "key": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "key": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "key": "Age",
          "value": "0"
        },
        {
          "key": "Age",
          "value": "0"
        },
        {
          "key": "Content-Length",
          "value": "5298"
        },
        {
          "key": "Date",
          "value": "Wed, 24 Apr 2019 18:32:22 GMT"
        },
        {
          "key": "Connection",
          "value": "keep-alive"
        },
        {
          "key": "X-Served-By",
          "value": "cache-mdw17369-MDW"
        },
        {
          "key": "X-Cache",
          "value": "MISS"
        },
        {
          "key": "X-Cache-Hits",
          "value": "0"
        },
        {
          "key": "Country",
          "value": "CA"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=31536000; includeSubDomains; preload"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"time_entries\": [\n        {\n            \"id\": 47654134,\n            \"identity_id\": 37256,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2016-08-16T20:00:00Z\",\n            \"created_at\": \"2019-04-18T20:50:28Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": null,\n            \"note\": \"Stuff\",\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47634496,\n            \"identity_id\": 1882548,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2016-08-16T20:00:00Z\",\n            \"created_at\": \"2019-04-18T15:16:32Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": null,\n            \"note\": \"Stuff\",\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47630482,\n            \"identity_id\": 1882548,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2019-04-19T04:00:00Z\",\n            \"created_at\": \"2019-04-18T14:11:34Z\",\n            \"duration\": 10800,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": 3575792,\n            \"note\": null,\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47630476,\n            \"identity_id\": 1882548,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2019-04-15T04:00:00Z\",\n            \"created_at\": \"2019-04-18T14:11:34Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": 3575792,\n            \"note\": null,\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47654186,\n            \"identity_id\": 37256,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2019-04-18T20:00:00Z\",\n            \"created_at\": \"2019-04-18T20:51:22Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": null,\n            \"note\": \"Stuff\",\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47630480,\n            \"identity_id\": 1882548,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2019-04-18T04:00:00Z\",\n            \"created_at\": \"2019-04-18T14:11:34Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": 3575792,\n            \"note\": null,\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47630478,\n            \"identity_id\": 1882548,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2019-04-17T04:00:00Z\",\n            \"created_at\": \"2019-04-18T14:11:34Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": 3575792,\n            \"note\": null,\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47632920,\n            \"identity_id\": 1882548,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2016-08-16T20:00:00Z\",\n            \"created_at\": \"2019-04-18T14:58:17Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": null,\n            \"note\": \"Stuff\",\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        },\n        {\n            \"id\": 47632874,\n            \"identity_id\": 1882548,\n            \"timer\": null,\n            \"is_logged\": true,\n            \"started_at\": \"2016-08-16T20:00:00Z\",\n            \"created_at\": \"2019-04-18T14:57:34Z\",\n            \"duration\": 7200,\n            \"client_id\": 31006,\n            \"project_id\": 2976412,\n            \"pending_client\": null,\n            \"pending_project\": null,\n            \"pending_task\": null,\n            \"task_id\": null,\n            \"service_id\": null,\n            \"note\": \"Stuff\",\n            \"active\": true,\n            \"billable\": false,\n            \"billed\": false,\n            \"internal\": false,\n            \"retainer_id\": null,\n            \"highlight\": null\n        }\n    ],\n    \"meta\": {\n        \"total\": 9,\n        \"per_page\": 30,\n        \"page\": 1,\n        \"pages\": 1,\n        \"total_logged\": 0,\n        \"total_unbilled\": 0\n    },\n    \"aggregations\": null,\n    \"download_token\": null,\n    \"abilities\": [\n        {\n            \"time_entry_id\": 47654134,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47634496,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47630482,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47630476,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47654186,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47630480,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47630478,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47632920,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        },\n        {\n            \"time_entry_id\": 47632874,\n            \"abilities\": [\n                {\n                    \"name\": \"can_edit\",\n                    \"value\": true\n                },\n                {\n                    \"name\": \"can_delete\",\n                    \"value\": true\n                }\n            ]\n        }\n    ]\n}"
    }
  ]
}