Skip to content

Instantly share code, notes, and snippets.

The Ticket Import API is used by the Teamwork Desk importer and can be used by others to perform their own import from their own systems.

Endpoint: POST /v1/import/tickets.json

How it works

Inboxes

Tickets will be imported to the Inbox with the matching emailSource if one exists, otherwise they will be put in the Inbox with the id given as fallbackInboxId.

Users

Customers and agents will be matched by email address, if they do not exists they will be created. Agents created will be marked as "Invited" and will not count against to your agent limit on your Teamwork Desk plan unless activated.

defmodule Base58 do
@alphabet ~c(123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjklmnpqrstuvwxyz)
def encode(x), do: _encode(x, [])
def decode(str), do: _decode(str |> to_char_list, 0)
defp _encode(0, acc), do: acc |> to_string
defp _encode(x, acc) do
_encode(div(x, 58), [Enum.at(@alphabet, rem(x, 58)) | acc])
end
<?php
class Clock {
private $minutes;
/**
* @param int $hour
* @param int $minutes
*/
public function __construct($hour, $minutes = 0)
@jrdnull
jrdnull / sudoku.go
Created July 12, 2013 12:32
Brute force Sudoku solver
// Copyright (c) 2013 Jordon Smith <jrd@mockra.net>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in
@jrdnull
jrdnull / wunderground.go
Created July 12, 2013 08:22
Query wunderground api, for my irc bot
// Copyright (c) 2013 Jordon Smith <jrd@mockra.net>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in