0
干杯!我使用nexmo宝石在我的Rails项目,所以,我想JSON和我与get_balance
方法平衡,但我得到:从Rails获得Nexmo API的余额json
#<Nexmo::Response:0x007ff0c7214138 @http_response=#<Net::HTTPOK 200 OK readbody=true>, @json=JSON>
但是当我试图用卷曲同样的事情
curl -H "Accept: application/json" https://rest.nexmo.com/account/get-balance/\{#######\}/\{#######\}
它给了我正是我想要的:
{"value":0.02}
那么,如何处理Nexmo: :响应?
是的,就是这样,谢谢! – xamenrax 2013-04-30 09:13:07
很高兴帮助!别客气。 – 2013-04-30 09:14:27