我正在尝试将我的 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 响应的最佳方式是什么?