최근 검색


최근 검색 없음

Michal Zawalski's Avatar

Michal Zawalski

가입한 날짜: 2022년 10월 26일

·

마지막 활동: 2022년 11월 08일

팔로잉

0

팔로워

0

총 활동 수

13

투표 수

2

플랜 수

5

활동 개요

님의 최근 활동 Michal Zawalski

Michal Zawalski님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Jehudowuf I'm verifying the request via this method and it works in Spring Boot :) arguments for the function come from webhook request: headers you mention and the full request body. Hope it helps :) Compared signatures in the final if statement should be the same.

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;
import org.apache.tomcat.util.codec.binary.Base64;

......

private final String zendeskSecretKey = "XXXXXXXXXXX_SECRET_FROM_WEBHOOK_CONFIG";

public void validateZendeskWebhookRequest(String zendeskSignatureTimeStamp, String zendeskSignature, String requestBody) throws Exception {
Mac sha256 = Mac.getInstance("HmacSHA256");
SecretKeySpec secretKey = new SecretKeySpec(zendeskSecretKey.getBytes(StandardCharsets.UTF_8), "HmacSHA256");
sha256.init(secretKey);
String signature =
Base64.encodeBase64String(
sha256.doFinal((zendeskSignatureTimeStamp + requestBody).getBytes(StandardCharsets.UTF_8)));

LOGGER.debug("Request Validation Result: {} vs {}", signature, zendeskSignature);

if (!zendeskSignature.equals(signature)) {
throw new ZendeskRequestNotValidException();
}
}

댓글 보기 · 2022년 11월 08일에 게시됨 · Michal Zawalski

0

팔로워

0

투표 수

0

댓글


Michal Zawalski님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

Ok, thank you for your response!

댓글 보기 · 2022년 11월 08일에 게시됨 · Michal Zawalski

0

팔로워

0

투표 수

0

댓글


Michal Zawalski님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs

Is there any way to reply to side conversation on behalf of end user?

I'm able to create/comment tickets via Request API on behalf of end user but it seems that side conversation API is restricted for Agents only. 

I was trying to workaround that by setting the message.from attribute of my payload to the end user email and name but the API (link) ignores it and the author (from) of the reply was my admin user :/

2022년 11월 03일에 게시됨 · Michal Zawalski

1

팔로워

1

투표

0

댓글


Michal Zawalski님이 에 게시물을 만듦

게시물 Developer - Zendesk APIs

Hi

Is there any way to get the defined Email template from Zendesk settings via Zendesk Rest API?

I would like to send emails to the end users using my own SMTP server. I'm using Zendesk Triggers + Webhooks to get the necessary information to generate the email but I don't know how to use defined in Zendesk Setting Email template to replicate the email process fully.

2022년 10월 26일에 게시됨 · Michal Zawalski

0

팔로워

2

투표 수

2

댓글


Michal Zawalski님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk APIs

I also have a scenario where i would like to change the 'to' value of the 'via' object in ticket comment - via Request API. 

I would like to create a ticket (request) on behalf of the end user setting 'to' to the support mail address. Instead the 'to' value in 'via' object is always set to the author of the ticket (end user). And the ticket looks like the end user is addressing ticket to himself :/ changing the recipient of the ticket (request) is not changing anything

댓글 보기 · 2022년 10월 26일에 게시됨 · Michal Zawalski

0

팔로워

0

투표 수

0

댓글


Michal Zawalski님이 에 댓글을 입력함

댓글Formatting and customizing your email

Hi,

Is there any way to get the defined Email template from Zendesk settings via Zendesk Rest API?

댓글 보기 · 2022년 10월 26일에 게시됨 · Michal Zawalski

0

팔로워

0

투표 수

0

댓글