Create Zendesk tickets from your ARTIK

Zendesk is a fantastic platform for providing customer support and for tracking issues that can improve your project. We'll show you how to create a support ticket in your Zendesk dashboard from your Samsung ARTIK. Once you know how to create a support ticket, you'll be able to run any of the Zendesk Choreos from your ARTIK.

This sketch uses our Zendesk > Tickets > CreateTicket Choreo.

Get Set Up

1Make sure you have a Temboo account. If you don't already have one, you can register for a free account here.

2If this is the first time using Temboo, you'll need to set up your ARTIK board to find the Temboo libraries. To do so, you'll need to create the file temboo.conf in /etc/ld.so.conf.d. Inside of temboo.conf, you'll want to copy the line below and paste it into the file:


After saving temboo.conf, run ldconfig from the command line to add the Temboo library directory to the system library search path.

You’ll also need to get the IP address of your ARTIK board using ifconfig. The example below shows the results when the ARTIK board is connected to the internet through an ethernet cable. The IP address you'll want to use is listed next to inet.

[root@localhost ~]$ ifconfig
eth0: flags=4163  mtu 1500
        inet  netmask  broadcast

3If you don't already have an account with Zendesk, you'll need to create one by going to the Zendesk registration page.

Run the Choreo

4Go to the Zendesk > Tickets > CreateTicket Choreo page and plug in the appropriate inputs as shown in the screenshot below.

Zendesk Inputs

5After you've hit Run, go to your Zendesk dashboard, and you should see that your new ticket has been created.

Zendesk Dashboard

Auto-Generate your ARTIK code

6Turn on IoT Mode and make sure that you've added details about how your ARTIK is connected to the internet.

Samsung ARTIK 10 IoT Mode

7Scroll down the page to the CODE snippet box. Copy / paste the code into new files, or download it.

Create your header file

In order to run this code on your ARTIK, it needs to be configured with an appropriate TembooAccount.h header file that contains your Temboo account information.

9Scroll past the CODE box to the HEADER FILE box and copy and paste the contents into your TembooAccount.h file.

Header File

Run The Code

10Copy the downloaded zip file to your ARTIK board using scp. From your computer, go to the directory where the zip file is located and type the command below. Make sure you use the IP address for your board you found using ifconfig.

[root@localhost ~]$ scp createticket.zip root@xxx.xxx.xxx.xxx:/home

11Now go to the createticket directory and compile and run your code. Run the first command to compile your code. After compiling has finished and no errors have been reported, run your program using the second command. With the code running, you can now create your Zendesk ticket.

[root@localhost ~]$ gcc -L/opt/iothub/artik/temboo/temboo_artik_library/lib -ltemboo -I/opt/iothub/artik/temboo/temboo_artik_library/include createticket.c -o createticket
[root@localhost ~]$ ./createticket

Note: If you get an error about cdefs.h not being found, this could mean your ARTIK board was not shipped with glibc-headers. This can be solved by reinstalling glibc-headers using the command below. After reinstalling glibc-headers, run the two commands above to compile and run your code.

[root@localhost ~]$ yum reinstall glibc-headers

12Check your Zendesk dashboard again and you should see a second ticket created, this time from your ARTIK.

What's Next?

Now that you've mastered creating a ticket in Zendesk from your ARTIK, why not try working with some of the other Zendesk Choreos. Ready for something different? Check out the rest of the 2000+ Choreos in our Library and get inspired for your next project.

Need Help?

We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.