A simple widget that retrieves the number of unassigned tickets in Helpscout, a web-based help desk.
##Dependencies
Add it to dashing's gemfile:
gem 'json'
and run bundle install
.
- Install the widget with
dashing install 1f4802bec625f65bc32f
or create ahelpscout.rb
file in yourjobs
directory - Add
gem "json"
to yourGemfile
- Set the
mailbox_id
&helpscout_token
parametersmailbox_id
can be found in the url of your helpscout dashboardhttps://secure.helpscout.net/mailbox/YOUR_ACCOUNT/MAILBOX_ID/
helpscout_token
can be set by following this guide: http://developer.helpscout.net/help-desk-api
Add the follwing html to your dashboard .erb
file:
<li data-row="2" data-col="5" data-sizex="1" data-sizey="1">
<div data-id="helpscout"
data-view="Number"
data-title="Open tickets"
style="background-color:#2a4258;"
data-moreinfo="Open tickets in ACME mailbox"></div>
<i class="icon-envelope icon-background"></i>
</li>
The Net:HTTP request doesn't verify the SSL certificate. I was just too lazy to do it. Feel free to add in the comments, i'll add it in the code.