최근 검색


최근 검색 없음

Usman Malik's Avatar

Usman Malik

가입한 날짜: 2021년 10월 16일

·

마지막 활동: 2023년 5월 09일

팔로잉

0

팔로워

0

총 활동 수

5

투표 수

0

플랜 수

2

활동 개요

님의 최근 활동 Usman Malik

Usman Malik님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs

I am trying to figure out if there is a way to know if/when an attachment was downloaded by someone.

Looking at the audit logs api looks like there are only the following possibilists, and none for attachment downloads:

  • create
  • destroy
  • exported
  • login
  • update

Is there any other view of knowing this information?

Thanks

2023년 5월 09일에 게시됨 · Usman Malik

0

팔로워

3

투표 수

2

댓글


Usman Malik님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Thanks Greg.

The issue is not about our apps, we are interested in knowing who many (other) apps are installed in our workspace and what scopes they have asked for. Think of it as a report.

But yeah looks like its currently not possible.

댓글 보기 · 2021년 3월 25일에 게시됨 · Usman Malik

0

팔로워

1

투표

0

댓글


Usman Malik님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs

Ask: To get a list of all apps installed on my workspace along with their scopes.

Issue One way to look at: There are multiple apis but they don't cross over to get the complete picture.

- We have `/api/v2/oauth/tokens` which returns scopes being used by an OAuth client. Great.

{
  "tokens": [
    {
      "client_id": 41,
      "created_at": "2009-05-13T00:07:08Z",
      "expires_at": "2011-07-22T00:11:12Z",
      "id": 223443,
      "refresh_token": "af3t24tfj34h43s...",
      "scopes": [
        "read"
      ],
      "token": "af3345kdj3",
      "url": "https://example.zendesk.com/api/v2/tokens/223443.json",
      "used_at": "2010-01-22T00:11:12Z",
      "user_id": 29
    },

- Then we have `/api/v2/oauth/clients/{oauth_client_id}` which doesn't contain application id its associated with:

{
  "client": {
    "company": "Zendesk",
    "created_at": "2009-05-13T00:07:08Z",
    "description": "Zendesk Test Client",
    "id": 223443,
    "identifier": "test_client",
    "name": "Test Client",
    "redirect_uri": [
      "https://example.com/callback"
    ],
    "secret": "af3t24tfj34h43s...",
    "updated_at": "2011-07-22T00:11:12Z",
    "url": "https://example.zendesk.com/api/v2/clients/223443.json",
    "user_id": 29
  }
}

 

Issue another way to look at: Now try getting the same information via `/api/v2/apps/installations` it returns list of all the apps installed. Great.

{
  "installations": [
    {
      "app_id": 218618,
      "collapsible": true,
      "created_at": "2020-06-11T06:12:48Z",
      "enabled": true,
      "group_restrictions": [],
      "has_incomplete_subscription": false,
      "has_unpaid_subscription": null,
      "id": 361234573552,
      "paid": null,
      "pending_installation": true,
      "pending_job_id": "587986abda901cde3873697585091dab",
      "plan_information": {
        "name": null
      },
      "product": "support",
      "recurring_payment": false,
      "redirect_path": "/support/apps/manage",
      "role_restrictions": null,
      "servable": true,
      "settings": {
        "attachment_tag": "has_attachment",
        "blacklist": null,
        "items_per_page": "6",
        "name": "Attachment Manager",
        "new_attachment_tag": "has_new_attachment",
        "title": "Attachment Manager",
        "whitelist": null
      },
      "stripe_account": "acct_1CyabcGO5FKrIYc5",
      "stripe_publishable_key": "pk_live_zMw5abcdYBbd6axDbyrzrRl9",
      "updated": "20200305221223",
      "updated_at": "2020-06-11T06:12:48Z"
    }
  ]
}

However there doesn't seem to be any way to tie the installation to > oauth client > token

2021년 3월 25일에 게시됨 · Usman Malik

1

팔로워

3

투표 수

6

댓글