LANG SELRCT

Apps Script Reference  (Create: Create new Spreadsheet | Create new Apps Script

Saturday, August 31, 2019

zendesk APIでグループの情報を取得したい


一覧の取得と各グループの情報を取得したくてリファレンスから情報を得ました。
  1. グループの一覧を取得する
    https://EXAMPLE.zendesk.com/api/v2/groups.json
  2. 特定のグループの情報を取得するhttps://EXAMPLE.zendesk.com/api/v2/groups/360005843012.json


1. グループの一覧を取得する
https://EXAMPLE.zendesk.com/api/v2/groups.json

レスポンス
{
  "groups": [{
    "url": "https://EXAMPLE.zendesk.com/api/v2/groups/360005923112.json",
    "id": 360005923112,
    "name": "sales",
    "deleted": false,
    "created_at": "2019-08-31T04:42:10Z",
    "updated_at": "2019-08-31T04:42:10Z"
  }, {
    "url": "https://EXAMPLE.zendesk.com/api/v2/groups/360005922532.json",
    "id": 360005922532,
    "name": "support-engineer",
    "deleted": false,
    "created_at": "2019-08-31T02:29:57Z",
    "updated_at": "2019-08-31T02:32:43Z"
  }, {
    "url": "https://EXAMPLE.zendesk.com/api/v2/groups/360005843012.json",
    "id": 360005843012,
    "name": "サポート",
    "deleted": false,
    "created_at": "2019-08-31T02:25:25Z",
    "updated_at": "2019-08-31T02:25:30Z"
  }],
  "next_page": null,
  "previous_page": null,
  "count": 3
}


2. 特定のグループの情報を取得する
https://EXAMPLE.zendesk.com/api/v2/groups.json

レスポンス
{
  "group": {
    "url": "https://EXAMPLE.zendesk.com/api/v2/groups/360005843012.json",
    "id": 360005843012,
    "name": "サポート",
    "deleted": false,
    "created_at": "2019-08-31T02:25:25Z",
    "updated_at": "2019-08-31T02:25:30Z"
  }
}


参考

Support API Groups
https://developer.zendesk.com/rest_api/docs/support/groups

Latest post

Extracting data from Google Sheets with regular expressions

Introduction Regular expressions are a powerful tool that can be used to extract data from text.  In Google Sheets, regular expressions ca...