如何从 AIM 切换到亚马逊 MWS?

发布于 2024-12-13 12:45:00 字数 1305 浏览 4 评论 0原文

我最近发现亚马逊很快就会逐渐转向他们的 MWS 系统,如果我想将我们所有的欧洲亚马逊账户合并到一个市场中,我将需要使用 MWS 将我们的商店库存上传到该账户。

然而,我们当前的解决方案只是一个 cURL .sh 脚本,它在 Linux 计算机上的 crontab 上每小时运行一次。它只是将库存作为平面文件发送到我们的亚马逊帐户,类似于以下内容:

curl 
    --header 'Authorization: Basic [omitted authentication info]' 
    --verbose 
    --request POST 
    --upload-file /home/websync/amazon/rhamuk.txt 
    --cookie "x-main=YvjPkwfntqDKun0QEmVRPcTTZDMe?Tn?; 
            ubid-main=002-8989859-9917520; 
            ubid-tacbus=019-5423258-4241018;
            x-tacbus=vtm4d53DvX@Sc9LxTnAnxsFL3DorwxJa; 
            ubid-tcmacb=087-8055947-0795529; 
            ubid-ty2kacbus=161-5477122-2773524; 
            session-id=087-178254-5924832; 
            session-id-time=950660664" 
    --header "Content-Type: text/xml" 
    --header "UploadFor: Marketplace" 
    --header "FileFormat: TabDelimited"   
    https://secure.amazon.co.uk/exec/panama/seller-admin/catalog-upload/add-modify-delete

MWS 提供 C#、Java 和 PHP 库作为使用 MWS 的示例解决方案,但我只最熟悉 Perl。我尝试过用户开发的 Perl 库,但仍然迷失。

我想我不明白它是如何从使用 cURL 上传包含所有身份验证信息和参数的文件这样简单的系统发展到像 MWS 这样复杂的系统的。

我从哪里开始?我尝试过使用 AMTU2(一个与 MWS 集成的程序),但遗憾的是它不包含清除-替换亚马逊上已有库存的功能,如果列出了一些错误的商品,我们有时需要这样做。无论出于何种原因(通常是我们的数据库在店内崩溃)。

有没有简单的脚本可以让我每小时通过 crontab 在我的 Linux 机器上运行,将我们的库存平面文件上传到亚马逊?

I recently discovered that Amazon will be gradually shifting to their MWS system soon, and that if I want to incorporate all of our European Amazon accounts into one marketplace, I will need to be using MWS to upload our store inventory to the account.

However, our current solution is merely a cURL .sh script that runs every hour on a crontab on our Linux machine. It simply sends the inventory as a flat file to our Amazon account, similar to the following:

curl 
    --header 'Authorization: Basic [omitted authentication info]' 
    --verbose 
    --request POST 
    --upload-file /home/websync/amazon/rhamuk.txt 
    --cookie "x-main=YvjPkwfntqDKun0QEmVRPcTTZDMe?Tn?; 
            ubid-main=002-8989859-9917520; 
            ubid-tacbus=019-5423258-4241018;
            x-tacbus=vtm4d53DvX@Sc9LxTnAnxsFL3DorwxJa; 
            ubid-tcmacb=087-8055947-0795529; 
            ubid-ty2kacbus=161-5477122-2773524; 
            session-id=087-178254-5924832; 
            session-id-time=950660664" 
    --header "Content-Type: text/xml" 
    --header "UploadFor: Marketplace" 
    --header "FileFormat: TabDelimited"   
    https://secure.amazon.co.uk/exec/panama/seller-admin/catalog-upload/add-modify-delete

MWS provids C#, Java, and PHP libraries for example solutions to using MWS, but I am only most familiar with Perl. I have given a user-developed Perl library a try but am still lost.

I guess I do not understand how it can go from being so simple as using cURL to upload the file with all authentication info and parameters, to such a complex system as MWS seems to be.

Where do I start? I have tried using AMTU2 (a program that integrates with MWS for you) but sadly it does not contain a feature to purge-replace the inventory that already exists on Amazon, which we need to do on occasion if there is some wrong items listed for whatever reason (usually an in-store crash of our database).

Is there no simple script that I can run on my linux machine every hour through its crontab that will upload our inventory flat file to Amazon?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

羅雙樹 2024-12-20 12:45:01

如果您还没有关注此线程,请继续关注。

http://www.amazonsellercommunity.com/forums/thread.jspa ?threadID=190537&tstart=0

我相信在完全转向 MWS 之前他们会为 Perl 用户提供一些可用的东西,就像你一样在这条船上并不孤单,亚马逊最不想做的就是让优秀的卖家受到冷落。

Keep your eye on this thread if you are not already.

http://www.amazonsellercommunity.com/forums/thread.jspa?threadID=190537&tstart=0

I'm sure they'll have something available for Perl users before going completely to MWS, as you are not alone in this boat and the last thing Amazon is going to want to do is leave good sellers out in the cold.

初心 2024-12-20 12:45:01

当然,您现在已经找到了这个,但如果有人仍在寻找,他们会在此处放置“AIM 到 Amazon MWS 迁移指南”:https://developer.amazonservices.com/gp/mws/soap-aim-faq.html/179-4306905-9431333

至于与Perl集成,我不知道该怎么做告诉你。 PHP 库最终仍然使用 cURL 进行请求和响应(我怀疑其他库也这样做)。诀窍是使请求中的签名和其他参数正确。

深入研究文档、代码和便签本是我能给你的唯一建议。尤其是便签本。他们提供的所有库都是面向对象的并且非常不像 Perl,但如果只是为了查看 Samples 目录,那么可能值得查看它们。

Surely you found this by now, but if anyone's still looking they put a "AIM to Amazon MWS Migration Guide" here: https://developer.amazonservices.com/gp/mws/soap-aim-faq.html/179-4306905-9431333

As for integrating with Perl, I don't know what to tell you. The PHP library eventually still uses cURL for the requests and responses (and I suspect the other libraries do, too). The trick is getting the signature and other parameters in the request correct.

Diving into the docs, the code, and the scratchpad is the only advice I can give you. Especially the scratchpad. All the libraries they offer are object-oriented and very un-Perl-like, but it might be worth looking at them if only to look at the Samples directory.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文