Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Parth Patel's Avatar

Parth Patel

Beigetreten 19. März 2025

·

Letzte Aktivität 25. März 2025

Folge ich

0

Follower

0

Gesamtaktivitäten

3

Stimmen

0

Abonnement

1

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von Parth Patel

Parth Patel hat einen Kommentar hinterlassen

Community-Kommentar Developer - Zendesk Apps Framework (ZAF)

I was able to authenticate upon initial load/install of the app but I don't have any way to see logs when it goes for refresh token.
This worked successfully 5 hours ago. and when i came back to it I am getting this error. so I am assuming the refresh token failed, the expires_in key is in the response from the token endpoint.  
Please see link below

https://app.ninjarmm.com/apidocs-beta/authorization/flows/authorization-code-flow
 
ZAF client Support App Function:

async function getDevices() {

  if (!token) {

    console.log("Failed to obtain access token");

    return;

  }

  try {

    return await client.request({

      url: "https://app.ninjarmm.com/api/v2/devices-detailed",

      type: "GET",

      headers: { Authorization: "Bearer {{setting.token}}" },

      secure: true,

    });

  } catch (error) {

    console.error("Error fetching devices:", error);

  }

}

Manifest portion regarding oauth:
  "parameters": [

    {

      "name": "token",

      "type": "oauth"

    }

  ],

  "oauth": {

    "response_type": "code",

    "client_id": "************************",

    "client_secret": "**********************************",

    "authorize_uri": "https://app.ninjarmm.com/ws/oauth/authorize",

    "scope": "control monitoring management",

    "access_token_uri": "https://app.ninjarmm.com/ws/oauth/token"

  },

Kommentar anzeigen · Bearbeitet 25. März 2025 · Parth Patel

0

Follower

0

Stimmen

0

Kommentare


Parth Patel hat einen Kommentar hinterlassen

Community-Kommentar Developer - Zendesk APIs

Did you ever find an answer to this, this is also happening to me!

Kommentar anzeigen · Gepostet 19. März 2025 · Parth Patel

0

Follower

0

Stimmen

0

Kommentare