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.
1Make sure you have a Temboo account. If you don't already have one, you can register for free.
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
/etc/ld.so.conf.d. Inside of
temboo.conf, you'll want to copy the line below and paste it into the file:
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 10.11.6.200 netmask 255.255.255.0 broadcast 10.11.6.255
3If you don't already have an account with Zendesk, you'll need to create one by going to the Zendesk registration page.
4Go to the Zendesk > Tickets > CreateTicket Choreo page and plug in the appropriate inputs as shown in the screenshot below.
5After you've hit Run, go to your Zendesk Dashboard, and you should see that your new ticket has been created.
6Turn on IoT Mode and make sure that you've added details about how your ARTIK is connected to the internet.
7Scroll down the page to the CODE snippet box. Copy / paste the code into new files, or download it.
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
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
[root@localhost ~]$ scp createticket.zip firstname.lastname@example.org:/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.
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.
We're always happy to help. Just email us at email@example.com, and we'll answer your questions.