我正在尝试将我的rails应用程序绑定到Zendesk API,以允许客户从Web表单提交问题。提交问题(从本地计算机测试)后,我的rails服务器显示以下活动:
tarted POST "/tickets" for 127.0.0.1 at 2014-01-14 09:22:11 -0800
Processing by TicketsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"blahblah", "email"=>"myemail@gmail.com", "subject"=>"asdfasdf", "body"=>"asdfasdfasdf", "commit"=>"Send Your Question"}
post https://myaccount.zendesk.com/api/v2/tickets
Accept: "application/json"
Accept-Encoding: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
User-Agent: "ZendeskAPI API 1.2.2"
{:ticket=>#<Hashie::Mash comment=#<Hashie::Mash body="asdfasdfasdf"> requester_id=455344333 subject="asdfasdf">}
问题是,门票没有发布到我的Zendesk帐户。我希望看到API的响应是什么;可能这可以帮助排除故障。查看API响应的最佳方法是什么?