Recent searches


No recent searches

Vojtech Soban's Avatar

Vojtech Soban

Joined Oct 16, 2021

·

Last activity Oct 16, 2021

Following

0

Followers

0

Total activity

2

Votes

0

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Vojtech Soban

Vojtech Soban commented,

Community comment Developer - Zendesk APIs

Hi,

I want to add comments on behalf of end users, according to docs I should just set up author_id

curl 'https://d3v-bb.zendesk.com/api/v2/requests/109.json' -X PUT -H 'Authorization: Bearer b86c8*********410' -H 'Content-Type: application/json' -d '{"request":{"comment":{"author_id":363284300813,"body":"My comment","uploads":[]}}}'

but when I refresh the comments I see my (I am admin) user id as author_id. I've tried this article and I am able to add a coment with different author using the X-On-Behalf-Of header but there are two still two issues:

  • it works only for end users with verified email address otherwise I got HTTP 403
  • it works only on server side, in the browser (our application is not server side), CORS complains that X-On-Behalf-Of header is not allowed, and that's true, see Access-Control-Allow-Headers: Authorization,X-Requested-With,X-Prototype-Version,X-Zendesk-API,Content-Type,X-CSRF-Token

Please how to add comments on behalf of end users?

 

Thanks

Regards,

Vojtech

View comment · Posted Mar 26, 2021 · Vojtech Soban

0

Followers

0

Votes

0

Comments