最近搜索
没有最近搜索

circle extra
已加入2022年2月22日
·
最后活动2022年6月18日
关注
0
关注者
0
活动总数
6
投票
0
订阅
3
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 circle extra
circle extra 创建了一个帖子,
I'm currently trying to do an API call to update multiple tickets at once using ticket IDs. These ticket IDs are stored on google Sheets since I have the script running there. I would appreciate someone sharing how to use the REST method and get it working! Thank you!
Problem: I'm not sure how to update multiple tickets using the following
If I try with 1 ticket ID, example PUT https://company.zendesk.com/api/v2/tickets/12345
This is from https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket. This will only update 1 ticket, fair.
Original Code: PUT /api/v2/tickets/{ticket_id}
I know to just replace {ticket_id} with a ticket number. If I put something like https://company.zendesk.com/api/v2/tickets/{ticket_id} it will throw me an error.When it comes to multiple: (Source:
https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-many-ticketsreasonable-offset-smoker) How do I write the code in a way I can read multiple ticket ids at once without having to repeat it 10 time if there are 10 tickets?
PUT https://company.zendesk.com/api/v2/tickets/update_many
Zendesk's example is saying it like this:
{
"tickets": [
{ "id": 1, "status": "solved" },
{ "id": 2, "status": "pending" }
]
}
已于 2022年6月18日 编辑 · circle extra
0
关注者
2
投票
1
Comment
circle extra 创建了一个帖子,
I'm trying to upload an image to the zendesk through its API, Once the file is uploaded I can get the token but files seems empty,
Reference : https://support.zendesk.com/hc/en-us/community/posts/4588002835994-Uploaded-image-is-empty-or-corrupted?page=1#community_comment_4588190155802industrial-desk
This is how my code looks like,
fis = new FileInputStream(file);
fis.read(contents);
byte[] encoded = Base64.encodeBase64(contents);
fis.close();
body.add("file", encoded);
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<>(body, headers);
UploadResponseObject result = restTemplate.postForObject(
remoteUri + "/api/v2/uploads.json?filename=" + multipartFile.getOriginalFilename(),
new HttpEntity<>(body, headers),
UploadResponseObject.class);
I have tried with several different headers,
headers.set("Content-Disposition","form-data; name=\"attachment\"; filename=\"laptop_183544.jpg\"");
headers.add("Content-Type","image/jpeg");
headers.add("Content-Type","multipart/form-data");
headers.add("Content-Type","application/binary");
But nothing seems to be working, File is uploaded but always an 1 KB empty file.
Can someone please help me on this?
Thanks.
已于 2022年5月12日 发布 · circle extra
0
关注者
1
投票
0
评论
circle extra 创建了一个帖子,
I am creating mobile app with flutter and I want to integrate Zendesk SDK using flutter as i have done research and i get to know that zendesk can not provide support to hybrid apps the only provide native SDK but still there are plugins which provide support but its too older and not working for me below is the plugins which i have tried.
Here is the code from second plugin
await Zendesk.initialize(<account key>, <application id>);
But I am not able to run app in android below is the error which i am facing
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.zendesk:chat:3.1.0.
Required by:
project :app > project :zendesk_plugin
> Could not resolve com.zendesk:chat:3.1.0.
> Could not get resource 'https://google.bintray.com/exoplayer/com/zendesk/chat/3.1.0/chat-3.1.0.pom'.
> Could not HEAD 'https://google.bintray.com/exoplayer/com/zendesk/chat/3.1.0/chat-3.1.0.pom'. Received status code 502 from server: Bad Gateway
> Could not resolve com.zendesk:messaging:5.1.0.
Required by:
project :app > project :zendesk_plugin
> Could not resolve com.zendesk:messaging:5.1.0.
> Could not get resource 'https://google.bintray.com/exoplayer/com/zendesk/messaging/5.1.0/messaging-5.1.0.pom'.
> Could not HEAD 'https://google.bintray.com/exoplayer/com/zendesk/messaging/5.1.0/messaging-5.1.0.pom'. Received status code 502 from server: Bad Gateway
> Could not resolve com.zendesk:chat-providers:3.1.0.
Required by:
project :app > project :zendesk_plugin
> Could not resolve com.zendesk:chat-providers:3.1.0.
> Could not get resource 'https://google.bintray.com/exoplayer/com/zendesk/chat-providers/3.1.0/chat-providers-3.1.0.pom'.
> Could not HEAD 'https://google.bintray.com/exoplayer/com/zendesk/chat-providers/3.1.0/chat-providers-3.1.0.pom'. Received status code 502 from server: Bad Gateway
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 43s
Running Gradle task 'assembleDebug'...
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.zendesk:chat:3.1.0.
Required by:
project :app > project :zendesk_plugin
> Could not resolve com.zendesk:chat:3.1.0.
> Could not get resource 'https://google.bintray.com/exoplayer/com/zendesk/chat/3.1.0/chat-3.1.0.pom'.
> Could not HEAD 'https://google.bintray.com/exoplayer/com/zendesk/chat/3.1.0/chat-3.1.0.pom'. Received status code 502 from server: Bad Gateway
> Could not resolve com.zendesk:messaging:5.1.0.
Required by:
project :app > project :zendesk_plugin
> Could not resolve com.zendesk:messaging:5.1.0.
> Could not get resource 'https://google.bintray.com/exoplayer/com/zendesk/messaging/5.1.0/messaging-5.1.0.pom'.
> Could not HEAD 'https://google.bintray.com/exoplayer/com/zendesk/messaging/5.1.0/messaging-5.1.0.pom'. Received status code 502 from server: Bad Gateway
> Could not resolve com.zendesk:chat-providers:3.1.0.
Required by:
project :app > project :zendesk_plugin
> Could not resolve com.zendesk:chat-providers:3.1.0.
> Could not get resource 'https://google.bintray.com/exoplayer/com/zendesk/chat-providers/3.1.0/chat-providers-3.1.0.pom'.
> Could not HEAD 'https://google.bintray.com/exoplayer/com/zendesk/chat-providers/3.1.0/chat-providers-3.1.0.pom'. Received status code 502 from server: Bad Gateway
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 12s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
can any one please tell me how to solve this or any other way to integrate Zendesk with flutter speaker.
Thanks
已于 2022年2月22日 发布 · circle extra
1
关注者
6
投票
4
评论