Chilkat Online Tools

Swift / New FreshBooks / List User

Back to Collection Items

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

    let http = CkoHttp()
    var success: Bool

    // Adds the "Authorization: Bearer <access_token>" header.
    http.AuthToken = "<access_token>"

    let sbResponseBody = CkoStringBuilder()
    success = http.QuickGetSb("https://api.freshbooks.com/auth/api/v1/users/me", sbContent: sbResponseBody)
    if success == false {
        print("\(http.LastErrorText)")
        return
    }

    let jResp = CkoJsonObject()
    jResp.LoadSb(sbResponseBody)
    jResp.EmitCompact = false

    print("Response Body:")
    print("\(jResp.Emit())")

    var respStatusCode: Int = http.LastStatus.intValue
    print("Response Status Code = \(respStatusCode)")
    if respStatusCode >= 400 {
        print("Response Header:")
        print("\(http.LastHeader)")
        print("Failed.")
        return
    }


}

Curl Command

curl -X GET
	-H "Authorization: Bearer <access_token>"
https://api.freshbooks.com/auth/api/v1/users/me

Postman Collection Item JSON

{
  "name": "List User",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "https://api.freshbooks.com/auth/api/v1/users/me",
      "protocol": "https",
      "host": [
        "api",
        "freshbooks",
        "com"
      ],
      "path": [
        "auth",
        "api",
        "v1",
        "users",
        "me"
      ]
    }
  },
  "response": [
    {
      "name": "List User",
      "originalRequest": {
        "method": "GET",
        "header": [
        ],
        "url": {
          "raw": "https://api.freshbooks.com/auth/api/v1/users/me",
          "protocol": "https",
          "host": [
            "api",
            "freshbooks",
            "com"
          ],
          "path": [
            "auth",
            "api",
            "v1",
            "users",
            "me"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Server",
          "value": "nginx"
        },
        {
          "key": "Content-Type",
          "value": "application/json; charset=utf-8"
        },
        {
          "key": "X-Frame-Options",
          "value": "SAMEORIGIN"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-Download-Options",
          "value": "noopen"
        },
        {
          "key": "X-Permitted-Cross-Domain-Policies",
          "value": "none"
        },
        {
          "key": "Referrer-Policy",
          "value": "strict-origin-when-cross-origin"
        },
        {
          "key": "ETag",
          "value": "W/\"5a3c6f0461b4fa7cb898d33d88331c2f\""
        },
        {
          "key": "Cache-Control",
          "value": "no-cache"
        },
        {
          "key": "X-Request-Id",
          "value": "b4160cbe-d5b3-4623-9ccb-fc2a3621303c"
        },
        {
          "key": "X-Runtime",
          "value": "0.070275"
        },
        {
          "key": "X-NewRelic-App-Data",
          "value": "PxQBWV5TCBABVlVSBAUHUFQTGhEhCQ0WQg1UDl1KG0dAAEsSHwxWTBdeWBZIEFVGSDsIBlJfQw8QWFNAQEpTTABOCEwIDwUDBVMMUARSBlJXAgZZSk4JHxJSVgAEBAdWAgEAVgNVUVsHQGU="
        },
        {
          "key": "Access-Control-Allow-Origin",
          "value": "*"
        },
        {
          "key": "Expires",
          "value": "Tue, 24 Apr 2018 18:46:56 GMT"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Via",
          "value": "1.1 google"
        },
        {
          "key": "Via",
          "value": "1.1 varnish"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        },
        {
          "key": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "key": "Date",
          "value": "Wed, 24 Apr 2019 18:46:56 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": "Vary",
          "value": "Accept-Encoding"
        },
        {
          "key": "Country",
          "value": "CA"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=31536000; includeSubDomains; preload"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"response\": {\n        \"id\": 1882548,\n        \"profile\": {\n            \"setup_complete\": true,\n            \"first_name\": \"Ryan\",\n            \"last_name\": \"Marr\",\n            \"phone_number\": null,\n            \"address\": null,\n            \"professions\": [\n                {\n                    \"id\": 2257832,\n                    \"business_id\": 1821078,\n                    \"title\": \"Plumbing\",\n                    \"company\": \"Ryan's Plumbing\",\n                    \"designation\": null\n                },\n                {\n                    \"id\": 2258140,\n                    \"business_id\": 1821282,\n                    \"title\": \"Roofing\",\n                    \"company\": \"Ryan's Roofing\",\n                    \"designation\": null\n                },\n                {\n                    \"id\": 2291854,\n                    \"business_id\": 1849316,\n                    \"title\": \"Horse Racing\",\n                    \"company\": \"Archer R15\",\n                    \"designation\": null\n                },\n                {\n                    \"id\": 2431260,\n                    \"business_id\": 1966214,\n                    \"title\": \"Computer Hardware\",\n                    \"company\": \"Postman Sandbox\",\n                    \"designation\": null\n                },\n                {\n                    \"id\": 2450414,\n                    \"business_id\": 1982362,\n                    \"title\": \"Business Consulting\",\n                    \"company\": \"Ryan Marr\",\n                    \"designation\": null\n                }\n            ]\n        },\n        \"first_name\": \"Ryan\",\n        \"last_name\": \"Marr\",\n        \"email\": \"rmarr@freshbooks.com\",\n        \"language\": \"en\",\n        \"confirmed_at\": \"2019-03-05T19:06:41Z\",\n        \"created_at\": \"2019-03-05T19:06:17Z\",\n        \"unconfirmed_email\": null,\n        \"setup_complete\": true,\n        \"phone_numbers\": [\n            {\n                \"title\": \"\",\n                \"phone_number\": null\n            }\n        ],\n        \"addresses\": [\n            null\n        ],\n        \"profession\": {\n            \"id\": 2257832,\n            \"business_id\": 1821078,\n            \"title\": \"Plumbing\",\n            \"company\": \"Ryan's Plumbing\",\n            \"designation\": null\n        },\n        \"links\": {\n            \"me\": \"/service/auth/api/v1/users?id=1882548\",\n            \"roles\": \"/service/auth/api/v1/users/role/1882548\"\n        },\n        \"permissions\": {\n            \"G2MB3M\": {\n                \"advanced_accounting.access\": true,\n                \"attachments.access\": true,\n                \"business_accountant.limit\": 10,\n                \"client.limit\": -1,\n                \"proposals_candidate.access\": true,\n                \"rich_proposals.access\": true,\n                \"staff.limit\": -1,\n                \"BetaHeliosAsyncExpenses.access\": true,\n                \"beta_mobile_create_expense_subcategory.access\": true,\n                \"ios_beta_zendesk_widget.access\": true,\n                \"mobile_receipt_rebilling.access\": true,\n                \"helios_pushnotifications.beta.access\": true,\n                \"ios_beta_payment_schedules.access\": true,\n                \"helios_rebill_time.access\": true,\n                \"esignatures.access\": true,\n                \"helios_dashboard.access\": true,\n                \"helios_late_fee_reminder.beta.access\": true,\n                \"helios_bulk_actions_invoices.beta.access\": true,\n                \"auto_bank_import.access\": true,\n                \"helios_virtual_terminal.beta.access\": true,\n                \"helios_expense_rebilling.beta.access\": true,\n                \"helios_company_taxes.beta.access\": true,\n                \"helios_invoice_archive.beta.access\": true,\n                \"accountant_invite.access\": true,\n                \"premium_contractor_role.access\": true,\n                \"helios_sync_throttle.beta.access\": true,\n                \"BankReconciliation.access\": true,\n                \"helios_push_resource_to_use_execute.beta.access\": true,\n                \"new_time_tracking.access\": true,\n                \"bank_rec_smart_match.access\": true,\n                \"balance_sheet.access\": true,\n                \"invoice_v2_search.access\": true,\n                \"import_items_csv.access\": true,\n                \"export_clients_csv.access\": true,\n                \"helios_virtual_terminal_tutorial.beta.access\": true\n            },\n            \"wk6N3K\": {\n                \"advanced_accounting.access\": true,\n                \"attachments.access\": true,\n                \"business_accountant.limit\": 10,\n                \"client.limit\": -1,\n                \"proposals_candidate.access\": true,\n                \"rich_proposals.access\": true,\n                \"staff.limit\": -1,\n                \"BetaHeliosAsyncExpenses.access\": true,\n                \"beta_mobile_create_expense_subcategory.access\": true,\n                \"ios_beta_zendesk_widget.access\": true,\n                \"mobile_receipt_rebilling.access\": true,\n                \"helios_pushnotifications.beta.access\": true,\n                \"ios_beta_payment_schedules.access\": true,\n                \"helios_rebill_time.access\": true,\n                \"esignatures.access\": true,\n                \"helios_dashboard.access\": true,\n                \"helios_late_fee_reminder.beta.access\": true,\n                \"helios_bulk_actions_invoices.beta.access\": true,\n                \"auto_bank_import.access\": true,\n                \"helios_virtual_terminal.beta.access\": true,\n                \"helios_expense_rebilling.beta.access\": true,\n                \"helios_company_taxes.beta.access\": true,\n                \"helios_invoice_archive.beta.access\": true,\n                \"accountant_invite.access\": true,\n                \"helios_sync_throttle.beta.access\": true,\n                \"BankReconciliation.access\": true,\n                \"helios_push_resource_to_use_execute.beta.access\": true,\n                \"new_time_tracking.access\": true,\n                \"bank_rec_smart_match.access\": true,\n                \"balance_sheet.access\": true,\n                \"invoice_v2_search.access\": true,\n                \"import_items_csv.access\": true,\n                \"export_clients_csv.access\": true,\n                \"helios_virtual_terminal_tutorial.beta.access\": true\n            },\n            \"85lLQg\": {\n                \"advanced_accounting.access\": true,\n                \"attachments.access\": true,\n                \"business_accountant.limit\": 10,\n                \"client.limit\": -1,\n                \"proposals_candidate.access\": true,\n                \"rich_proposals.access\": true,\n                \"staff.limit\": -1,\n                \"BetaHeliosAsyncExpenses.access\": true,\n                \"beta_mobile_create_expense_subcategory.access\": true,\n                \"ios_beta_zendesk_widget.access\": true,\n                \"mobile_receipt_rebilling.access\": true,\n                \"helios_pushnotifications.beta.access\": true,\n                \"ios_beta_payment_schedules.access\": true,\n                \"helios_rebill_time.access\": true,\n                \"esignatures.access\": true,\n                \"helios_dashboard.access\": true,\n                \"helios_late_fee_reminder.beta.access\": true,\n                \"helios_bulk_actions_invoices.beta.access\": true,\n                \"auto_bank_import.access\": true,\n                \"helios_virtual_terminal.beta.access\": true,\n                \"helios_expense_rebilling.beta.access\": true,\n                \"helios_company_taxes.beta.access\": true,\n                \"helios_invoice_archive.beta.access\": true,\n                \"accountant_invite.access\": true,\n                \"helios_sync_throttle.beta.access\": true,\n                \"BankReconciliation.access\": true,\n                \"helios_push_resource_to_use_execute.beta.access\": true,\n                \"new_time_tracking.access\": true,\n                \"bank_rec_smart_match.access\": true,\n                \"balance_sheet.access\": true,\n                \"invoice_v2_search.access\": true,\n                \"import_items_csv.access\": true,\n                \"export_clients_csv.access\": true,\n                \"helios_virtual_terminal_tutorial.beta.access\": true,\n                \"helios_virtual_terminal_advertising.beta.access\": true\n            },\n            \"wkMd2g\": {\n                \"advanced_accounting.access\": true,\n                \"attachments.access\": true,\n                \"business_accountant.limit\": 10,\n                \"client.limit\": -1,\n                \"proposals_candidate.access\": true,\n                \"rich_proposals.access\": true,\n                \"staff.limit\": -1,\n                \"BetaHeliosAsyncExpenses.access\": true,\n                \"beta_mobile_create_expense_subcategory.access\": true,\n                \"ios_beta_zendesk_widget.access\": true,\n                \"mobile_receipt_rebilling.access\": true,\n                \"helios_pushnotifications.beta.access\": true,\n                \"ios_beta_payment_schedules.access\": true,\n                \"helios_rebill_time.access\": true,\n                \"esignatures.access\": true,\n                \"helios_dashboard.access\": true,\n                \"helios_late_fee_reminder.beta.access\": true,\n                \"helios_bulk_actions_invoices.beta.access\": true,\n                \"auto_bank_import.access\": true,\n                \"helios_virtual_terminal.beta.access\": true,\n                \"helios_expense_rebilling.beta.access\": true,\n                \"helios_company_taxes.beta.access\": true,\n                \"helios_invoice_archive.beta.access\": true,\n                \"accountant_invite.access\": true,\n                \"helios_sync_throttle.beta.access\": true,\n                \"BankReconciliation.access\": true,\n                \"helios_push_resource_to_use_execute.beta.access\": true,\n                \"new_time_tracking.access\": true,\n                \"bank_rec_smart_match.access\": true,\n                \"balance_sheet.access\": true,\n                \"invoice_v2_search.access\": true,\n                \"import_items_csv.access\": true,\n                \"export_clients_csv.access\": true,\n                \"helios_virtual_terminal_tutorial.beta.access\": true\n            },\n            \"5o0MVd\": {\n                \"advanced_accounting.access\": true,\n                \"attachments.access\": true,\n                \"business_accountant.limit\": 10,\n                \"client.limit\": -1,\n                \"proposals_candidate.access\": true,\n                \"rich_proposals.access\": true,\n                \"staff.limit\": -1,\n                \"BetaHeliosAsyncExpenses.access\": true,\n                \"beta_mobile_create_expense_subcategory.access\": true,\n                \"ios_beta_zendesk_widget.access\": true,\n                \"mobile_receipt_rebilling.access\": true,\n                \"helios_pushnotifications.beta.access\": true,\n                \"ios_beta_payment_schedules.access\": true,\n                \"helios_rebill_time.access\": true,\n                \"esignatures.access\": true,\n                \"helios_dashboard.access\": true,\n                \"helios_late_fee_reminder.beta.access\": true,\n                \"helios_bulk_actions_invoices.beta.access\": true,\n                \"auto_bank_import.access\": true,\n                \"helios_virtual_terminal.beta.access\": true,\n                \"helios_expense_rebilling.beta.access\": true,\n                \"helios_company_taxes.beta.access\": true,\n                \"helios_invoice_archive.beta.access\": true,\n                \"accountant_invite.access\": true,\n                \"helios_sync_throttle.beta.access\": true,\n                \"BankReconciliation.access\": true,\n                \"helios_push_resource_to_use_execute.beta.access\": true,\n                \"new_time_tracking.access\": true,\n                \"bank_rec_smart_match.access\": true,\n                \"balance_sheet.access\": true,\n                \"invoice_v2_search.access\": true,\n                \"import_items_csv.access\": true,\n                \"export_clients_csv.access\": true,\n                \"helios_virtual_terminal_tutorial.beta.access\": true\n            }\n        },\n        \"groups\": [\n            {\n                \"id\": 6074868,\n                \"group_id\": 4663288,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1821078,\n                \"active\": true\n            },\n            {\n                \"id\": 6075290,\n                \"group_id\": 4663628,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1821282,\n                \"active\": true\n            },\n            {\n                \"id\": 6087318,\n                \"group_id\": 4673734,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1821078,\n                \"active\": true\n            },\n            {\n                \"id\": 6142970,\n                \"group_id\": 4715160,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1849316,\n                \"active\": true\n            },\n            {\n                \"id\": 6248862,\n                \"group_id\": 4793508,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1821078,\n                \"active\": true\n            },\n            {\n                \"id\": 6339198,\n                \"group_id\": 4862942,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1821078,\n                \"active\": true\n            },\n            {\n                \"id\": 6342218,\n                \"group_id\": 4864422,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1821078,\n                \"active\": true\n            },\n            {\n                \"id\": 6348110,\n                \"group_id\": 4868154,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1821078,\n                \"active\": true\n            },\n            {\n                \"id\": 6446130,\n                \"group_id\": 4942664,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1966214,\n                \"active\": true\n            },\n            {\n                \"id\": 6446258,\n                \"group_id\": 4942784,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1966214,\n                \"active\": true\n            },\n            {\n                \"id\": 6479606,\n                \"group_id\": 4970918,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1982362,\n                \"active\": true\n            },\n            {\n                \"id\": 6481340,\n                \"group_id\": 4972416,\n                \"role\": \"owner\",\n                \"identity_id\": 1882548,\n                \"business_id\": 1966214,\n                \"active\": true\n            }\n        ],\n        \"subscription_statuses\": {\n            \"G2MB3M\": \"active_trial\",\n            \"wk6N3K\": \"active_trial\",\n            \"85lLQg\": \"active_trial\",\n            \"wkMd2g\": \"active_trial\",\n            \"5o0MVd\": \"active_trial\"\n        },\n        \"integrations\": {},\n        \"business_memberships\": [\n            {\n                \"id\": 6074868,\n                \"role\": \"owner\",\n                \"unacknowledged_change\": false,\n                \"fasttrack_token\": \"eyJhbGciOiJIUzI1NiJ9.eyJmYXN0dHJhY2tfaWRlbnRpdHlfaWQiOiIxODgyNTQ4IiwiZmFzdHRyYWNrX3N5c3RlbV9pZCI6IjQxMjczMzYiLCJjcmVhdGVkX2F0IjoiMjAxOS0wNC0yNFQxODo0Njo1NiswMDowMCJ9.4qBILqGYGNXTHp5wBbZwFkFOA76j7z-vEbwoIQNvZ9g\",\n                \"business\": {\n                    \"id\": 1821078,\n                    \"name\": \"Ryan's Plumbing\",\n                    \"account_id\": \"G2MB3M\",\n                    \"date_format\": \"mm/dd/yyyy\",\n                    \"address\": {\n                        \"id\": 2406196,\n                        \"street\": \"190 Maria St\",\n                        \"city\": \"Toronto\",\n                        \"province\": \"Ontario\",\n                        \"country\": \"Canada\",\n                        \"postal_code\": \"M6P1W4\"\n                    },\n                    \"phone_number\": {\n                        \"id\": 854650,\n                        \"phone_number\": \"647-233-4592\"\n                    },\n                    \"business_clients\": [\n                        {\n                            \"id\": 423076,\n                            \"business_id\": 1821078,\n                            \"account_id\": \"wkk4zg\",\n                            \"userid\": 188186,\n                            \"client_business\": {\n                                \"business_id\": 1821078\n                            },\n                            \"account_business\": {\n                                \"account_business_id\": 1520004,\n                                \"account_id\": \"wkk4zg\"\n                            }\n                        }\n                    ]\n                }\n            },\n            {\n                \"id\": 6075290,\n                \"role\": \"owner\",\n                \"unacknowledged_change\": false,\n                \"fasttrack_token\": \"eyJhbGciOiJIUzI1NiJ9.eyJmYXN0dHJhY2tfaWRlbnRpdHlfaWQiOiIxODgyNTQ4IiwiZmFzdHRyYWNrX3N5c3RlbV9pZCI6IjQxMjc0OTgiLCJjcmVhdGVkX2F0IjoiMjAxOS0wNC0yNFQxODo0Njo1NiswMDowMCJ9.QrpweK0-SIaZ4XbcZ1NuBID3lQBied6vIvmEAM_FfEw\",\n                \"business\": {\n                    \"id\": 1821282,\n                    \"name\": \"Ryan's Roofing\",\n                    \"account_id\": \"wk6N3K\",\n                    \"date_format\": \"mm/dd/yyyy\",\n                    \"address\": {\n                        \"id\": 2218132,\n                        \"street\": null,\n                        \"city\": null,\n                        \"province\": null,\n                        \"country\": \"Canada\",\n                        \"postal_code\": null\n                    },\n                    \"phone_number\": null,\n                    \"business_clients\": []\n                }\n            },\n            {\n                \"id\": 6142970,\n                \"role\": \"owner\",\n                \"unacknowledged_change\": false,\n                \"fasttrack_token\": \"eyJhbGciOiJIUzI1NiJ9.eyJmYXN0dHJhY2tfaWRlbnRpdHlfaWQiOiIxODgyNTQ4IiwiZmFzdHRyYWNrX3N5c3RlbV9pZCI6IjQxNDkzNzIiLCJjcmVhdGVkX2F0IjoiMjAxOS0wNC0yNFQxODo0Njo1NiswMDowMCJ9.rp929zsTTmI_KpUimzcHQAUCm1SZwJTpNFSDvgUKMe0\",\n                \"business\": {\n                    \"id\": 1849316,\n                    \"name\": \"Archer R15\",\n                    \"account_id\": \"85lLQg\",\n                    \"date_format\": \"mm/dd/yyyy\",\n                    \"address\": {\n                        \"id\": 2256978,\n                        \"street\": null,\n                        \"city\": null,\n                        \"province\": null,\n                        \"country\": \"Canada\",\n                        \"postal_code\": null\n                    },\n                    \"phone_number\": null,\n                    \"business_clients\": []\n                }\n            },\n            {\n                \"id\": 6446130,\n                \"role\": \"owner\",\n                \"unacknowledged_change\": false,\n                \"fasttrack_token\": \"eyJhbGciOiJIUzI1NiJ9.eyJmYXN0dHJhY2tfaWRlbnRpdHlfaWQiOiIxODgyNTQ4IiwiZmFzdHRyYWNrX3N5c3RlbV9pZCI6IjQyMzY0MTAiLCJjcmVhdGVkX2F0IjoiMjAxOS0wNC0yNFQxODo0Njo1NiswMDowMCJ9.jT0yzokcfI9WJ_hydiS8EM5doyrcBcxf5gncqbMTkW4\",\n                \"business\": {\n                    \"id\": 1966214,\n                    \"name\": \"Postman Sandbox\",\n                    \"account_id\": \"wkMd2g\",\n                    \"date_format\": \"mm/dd/yyyy\",\n                    \"address\": {\n                        \"id\": 2421054,\n                        \"street\": null,\n                        \"city\": null,\n                        \"province\": null,\n                        \"country\": \"Canada\",\n                        \"postal_code\": null\n                    },\n                    \"phone_number\": null,\n                    \"business_clients\": []\n                }\n            },\n            {\n                \"id\": 6479606,\n                \"role\": \"owner\",\n                \"unacknowledged_change\": false,\n                \"fasttrack_token\": \"eyJhbGciOiJIUzI1NiJ9.eyJmYXN0dHJhY2tfaWRlbnRpdHlfaWQiOiIxODgyNTQ4IiwiZmFzdHRyYWNrX3N5c3RlbV9pZCI6IjQyNDg1MDYiLCJjcmVhdGVkX2F0IjoiMjAxOS0wNC0yNFQxODo0Njo1NiswMDowMCJ9.fNJ-ZNyOgSVDHSPSVxjw8OIhdzw0fD3jezKQuKzYj-0\",\n                \"business\": {\n                    \"id\": 1982362,\n                    \"name\": \"Ryan Marr\",\n                    \"account_id\": \"5o0MVd\",\n                    \"date_format\": \"mm/dd/yyyy\",\n                    \"address\": {\n                        \"id\": 2443174,\n                        \"street\": null,\n                        \"city\": null,\n                        \"province\": null,\n                        \"country\": \"Canada\",\n                        \"postal_code\": null\n                    },\n                    \"phone_number\": null,\n                    \"business_clients\": []\n                }\n            }\n        ],\n        \"identity_origin\": \"magnum\",\n        \"roles\": [\n            {\n                \"id\": 1968208,\n                \"role\": \"admin\",\n                \"systemid\": 4127336,\n                \"userid\": 1,\n                \"created_at\": \"2019-03-05T19:06:18Z\",\n                \"links\": {\n                    \"destroy\": \"/service/auth/api/v1/users/role/1968208\"\n                },\n                \"accountid\": \"G2MB3M\"\n            },\n            {\n                \"id\": 1968426,\n                \"role\": \"admin\",\n                \"systemid\": 4127498,\n                \"userid\": 1,\n                \"created_at\": \"2019-03-05T19:42:02Z\",\n                \"links\": {\n                    \"destroy\": \"/service/auth/api/v1/users/role/1968426\"\n                },\n                \"accountid\": \"wk6N3K\"\n            },\n            {\n                \"id\": 1976906,\n                \"role\": \"client\",\n                \"systemid\": 3892154,\n                \"userid\": 188186,\n                \"created_at\": \"2019-03-07T16:34:39Z\",\n                \"links\": {\n                    \"destroy\": \"/service/auth/api/v1/users/role/1976906\"\n                },\n                \"accountid\": \"wkk4zg\"\n            },\n            {\n                \"id\": 1998562,\n                \"role\": \"admin\",\n                \"systemid\": 4149372,\n                \"userid\": 1,\n                \"created_at\": \"2019-03-13T16:23:54Z\",\n                \"links\": {\n                    \"destroy\": \"/service/auth/api/v1/users/role/1998562\"\n                },\n                \"accountid\": \"85lLQg\"\n            },\n            {\n                \"id\": 2124288,\n                \"role\": \"admin\",\n                \"systemid\": 4236410,\n                \"userid\": 1,\n                \"created_at\": \"2019-04-18T13:14:52Z\",\n                \"links\": {\n                    \"destroy\": \"/service/auth/api/v1/users/role/2124288\"\n                },\n                \"accountid\": \"wkMd2g\"\n            },\n            {\n                \"id\": 2141588,\n                \"role\": \"admin\",\n                \"systemid\": 4248506,\n                \"userid\": 1,\n                \"created_at\": \"2019-04-24T14:51:29Z\",\n                \"links\": {\n                    \"destroy\": \"/service/auth/api/v1/users/role/2141588\"\n                },\n                \"accountid\": \"5o0MVd\"\n            }\n        ]\n    }\n}"
    }
  ]
}