佣金详情服务(REST)
使用 CJ 佣金详细服务 (REST) 的人能否告诉我此查询的示例 XML 响应是什么。
CJ 的 Web 服务文档都没有准确说明 XML 的格式,而且由于我没有任何佣金,所以我只能猜测结果。
Can someone who uses CJ's Commission Detail Service (REST) tell me what a sample XML response is for this query.
None of CJ's Web Services documentation indicates exactly how the XML is formatted and as I don't have any commission payments yet I can only guess the result.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
通过与我的出版商之一签约,我发现了一个艰难的方法:
Found out the hard way by signing up to one of my publishers :
这是一个示例,它将读取上述示例 XML 报告中的每个节点。您可以提取所需的值并将它们保存到数据库中......微笑:)。
THis is an example which will read each node in the your above sample XML report. you can extract the required values and save them into the DB...... smiles :).
以上所有答案现在都已经过时了。新回复总共包含 20 个不同的项目。最近我在 CJ 上提交了一张票,这是我得到的回复。
我已经为轮询佣金详细服务 api 编写了一个 python 脚本。我通过获取第一个响应(佣金资源)的original_action_id并调用它的第二部分(项目详细资源)覆盖了佣金详细服务API的所有部分。最后,我将这两个 XML 合并到一个字典中。
All the above answers are now outdated. The new response contains the total of 20 different items. Recently I've raised a ticket on CJ and this is the response I got.
I have written one python script for polling commission detail service api. I have covered all parts of commission detail service api by fetching original_action_id of the first response(Commissions Resource) and calling the 2nd part of it(Item-Detail Resource). Finally I'm merging both those XML into a single dictionary.
我只是使用 simplexml_load_string( $response ) 将其作为已经回答的 xml feed 获取,但该对象将显示如下:
I just used simplexml_load_string( $response ) to get it as xml feed as already answered but the object would appear as follows: