Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.