Can third-party client ID be obtained via oAuth?

after OAuth processed, access token and refresh token view the local storage in a fresh desk.
I need client id show the local storage is possible

Hi Sudhakar,

Welcome to the Freshworks developer community. :tada:

It is not possible to access/store the Client ID in Frontend. Can you explain the use case you are working on so that we can suggest any alternates?

Thanks,
Janani V.

3 Likes

fresh desk and Trust pilot integration.

1)business unit review finds
GET
“Authorization”: “Bearer <%= access_token %>”
https://api.trustpilot.com/v1/private/business-units/{businessUnitId}/reviews

2)Find a businessUnitId
Returns the business unit given by the provided name
API Key=client_id
GET
Authentication: API Key
https://api.trustpilot.com/v1/business-units/find?name={name}
The client Known as the business unit name only.
2 Case Only the Apikey method is used to find the business unit_ID

I understood the first part. Making a API call to api.trustpilot.com endpoint to get the json about the reveiws. But in the second part, if I understood correctly, you need client_id to be used as api_key to make a API call and find the names of “business units”

The problem is Trustpilot gives you client_id in the response, and you want to make use of it to make the 2nd API call.

Did I understand this correct @Sudhakar_R?
cc: @Janani_V

@Sudhakar_R, Were you able to Accomplish OAuth which you aimed to implement in the first place?

This topic was automatically closed after 13 days. New replies are no longer allowed.