Created
July 18, 2018 18:22
-
-
Save tstachl/e0b9f6523e3eb662be83e9ad965b233a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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