最近の検索


最近の検索はありません

Sudharsun Padma Ravi's Avatar

Sudharsun Padma Ravi

参加日2022年8月21日

·

前回のアクティビティ2024年11月07日

フォロー中

0

フォロワー

0

合計アクティビティ

6

投票

1

受信登録

2

アクティビティの概要

さんの最近のアクティビティ Sudharsun Padma Ravi

Sudharsun Padma Raviさんが投稿を作成しました:

投稿 Developer - Zendesk APIs

I have a custom Contact Us form that was built via AJAX. The files uploaded via API call to https://narvar.zendesk.com/api/v2/uploads.json are successful and token is returned. However, the uploaded file is corrupted and does not open. Can someone assist regarding this? This is the code that is being used

 

 

const attachmentTokens = [];

const username = "user@user.com"; // Replace with your username

const apiToken = "token"; // Replace with your API token

const authHeader = "Basic " + btoa(username + "/token:" + apiToken); // Concatenate username with /token and the API token

for (const file of files) {

const formData = new FormData();

const fileName = encodeURIComponent(file.name);

const fileContentType = file.type || "application/octet-stream"; // Default to a generic binary type if type is not available

const fileBlob = new Blob([file], { type: fileContentType });

// Log the file as a Blob for debugging

console.log("File Blob:", fileBlob);

formData.append("file", fileBlob, file.name);

console.log("FileType:", fileContentType);

console.log("FileName:", fileName);

console.log("File:", formData);

try {

const response = await $.ajax({

url: `https://narvar.zendesk.com/api/v2/uploads.json?filename=${fileName}`,

type: "POST",

data: formData,

processData: false,

contentType: false,

headers: {

Authorization: authHeader,

"Content-Type": fileContentType,

},

xhrFields: {

responseType: "json", // Set expected response type as JSON

},

});

投稿日時:2024年11月07日 · Sudharsun Padma Ravi

0

フォロワー

1

投票

1

コメント


Sudharsun Padma Raviさんが投稿を作成しました:

投稿 Q&A - Tickets and email

Our light agents create tickets for our customers in our Zendesk instance. This requests them to CC end-users so that our engineers route any communication to our end-users.

Would like to use off the CC feature to our light agents.

投稿日時:2022年9月13日 · Sudharsun Padma Ravi

0

フォロワー

3

投票

2

コメント


Sudharsun Padma Raviさんがコメントを作成しました:

コメントCreating dashboards

Change metric is an important aspect. This would allow us to use one query/reporting with multiple metrics. 

コメントを表示 · 投稿日時:2022年8月21日 · Sudharsun Padma Ravi

0

フォロワー

5

投票

0

コメント