无法通过curl访问Google Checkout API
问题描述:
我试图从Google结帐中获取一些报告。继:http://checkout.google.com/support/sell/bin/answer.py?hl=en&answer=70646
和 http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Order_Report_API.html无法通过curl访问Google Checkout API
使用命令:
curl -k --user "xyz:123" \
https://checkout.google.com/api/checkout/v2/reports/Merchant/111111 \
-d "$(cat req.xml)"
给出错误:
<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://checkout.google.com/schema/2"
serial-number="22321312-9ce8-asdasd-asda-2754106e0195">
<error-message>Bad username and/or password for API Access.</error-message>
</error>
- 注意,-k是因为卷曲经抱怨未经SSL。
- 是的,我有正确的用户名和密码。
- 是的,我已经与@gmail的用户名试图
- 是的,我已经试过了https://uname:[email protected]语法
答
好吧,我这解决了一个....
我是用我谷歌uname /密码时,而不得不使用我的商人作为uname和商人密码作为密码....
不要忘记标记这是接受的答案... – 2011-02-10 12:43:13