Recent searches


No recent searches

circle extra's Avatar

circle extra

Joined Feb 22, 2022

·

Last activity Jun 18, 2022

Following

0

Followers

0

Total activity

6

Votes

0

Subscriptions

3

ACTIVITY OVERVIEW

Latest activity by circle extra

circle extra created a post,

Post Developer - Zendesk APIs

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" }
  ]
}
 

Edited Jun 18, 2022 · circle extra

0

Followers

2

Votes

1

Comment


circle extra created a post,

Post Q&A - Sales CRM (Sell)

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.

Posted May 12, 2022 · circle extra

0

Followers

1

Vote

0

Comments


circle extra created a post,

Post Feedback - Apps and integrations (Platform)

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.

First Plugin

Second Plugin

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

Posted Feb 22, 2022 · circle extra

1

Follower

6

Votes

4

Comments