Skip to content

Instantly share code, notes, and snippets.

@tstachl
Created July 18, 2018 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tstachl/e0b9f6523e3eb662be83e9ad965b233a to your computer and use it in GitHub Desktop.
Save tstachl/e0b9f6523e3eb662be83e9ad965b233a to your computer and use it in GitHub Desktop.
require 'desk_api'
DeskApi.configure do |config|
config.username = 'user@example.com'
config.password = 'Example1'
config.endpoint = 'https://sample.desk.com'
end
customer = DeskApi.customers.create({
first_name: 'Test',
last_name: 'Customer',
phone_numbers: [{ type: 'home', value: '(123) 456-7890' }]
})
puts customer.id
puts customer.phone_numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment