Skip to content

Latest commit

 

History

History
90 lines (73 loc) · 1.79 KB

File metadata and controls

90 lines (73 loc) · 1.79 KB

Account

breeze-chms provides convenient access to Breeze's Account API.


account.summary()

Retrieve a summary overview of your account/organization details. Breeze API

Example:

const summary = await breeze.account.summary();
Sample response:
{
  "id": "ORG_ID",
  "name": "Grace Church",
  "subdomain": "gracechurchdemo",
  "status": "1",
  "created_on": "2019-09-10 09:19:35",
  "details": {
    "timezone": "America/New_York",
    "country": {
      "id": "2",
      "name": "United States of America",
      "abbreviation": "USA",
      "abbreviation_2": "US",
      "currency": "USD",
      "currency_symbol": "$",
      "date_format": "MDY",
      "sms_prefix": "1"
    }
  }
}

account.logs()

Retrieve a list of events based on search criteria. Breeze API

Example:

const logs = await breeze.account.logs({ action: 'person_updated' });
Sample response:
[
  {
    "id": "LOG_ID",
    "oid": "ORG_ID",
    "user_id": "USER_ID",
    "action": "person_updated",
    "object_json": "\"5023943\"",
    "created_on": "2019-08-15 04:41:10"
  },
  {
    "id": "LOG_ID",
    "oid": "ORG_ID",
    "user_id": "USER_ID",
    "action": "person_updated",
    "object_json": "\"5023253\"",
    "created_on": "2019-08-15 04:44:25"
  },
  {
    "id": "LOG_ID",
    "oid": "ORG_ID",
    "user_id": "USER_ID",
    "action": "person_updated",
    "object_json": "\"5023129\"",
    "created_on": "2019-08-15 04:49:31"
  }
]