@29aries/mws-advanced 中文文档教程

发布于 4年前 浏览 25 项目主页 更新于 3年前

构建状态codebeat badgeGreenkeeper 徽章文档徽章覆盖状态

mws-advanced -- A modern Amazon Merchant Web Services API Interface for Javascript

在 https://gitter.im/mws-advanced/Lobby 加入聊天< /a>

What does it do?

mws-advanced 提供了一个现代的、快速的、希望是明智的 API 来连接你的 Javascript 应用程序(节点或浏览器)到 Amazon Merchant Web Services API。

必备功能:

  • Automatic throttle-retry mechanism
  • Automatic parameter validation
  • Transform Javascript Arrays into MWS List format
  • Transform Date objects into ISO-8601 date stamps

mws-advanced 使用由 mws-simple 为 访问 MWS,而不是过去可用的内容。

Discussions

嘿大家! :-) 这是目前为止我在 github 上最受欢迎的 repo,基于数量 我在统计数据中看到的克隆数量和流量。 如果你认为你可能有一个很好的用途 这个库,在 Discussion 下一行:-)

Documentation / Quick-Start (I've heard enough, let's write some code)

自动生成的文档可在 文档

Why a new mws library?

尽管 npm 存储库中有大量 MWS 库,但很少有人积极参与 得到维护,使用现代 Javascript 编写的就更少了。 有些使用 Promises,但没有一个是 编写以利用该语言的最新功能。 更少的人有文件 这不仅仅假设您已经非常熟悉亚马逊 MWS API。

我写这篇文章是为了改变这一点。 我正在编写一个需要访问 MWS API 的项目,并且 为此,我需要能够与现代代码良好交互的代码。 我需要记录良好的代码, 使用起来很直观,不会让我的主要应用程序卡在必须弄清楚所有 变幻莫测的 XML 响应转换为 JSON 结果。 或者更糟。

不过,最重要的是,这个库在这里为您提供我用来构建我的 内部项目。 享受! :-)

Requirements

这需要 node.js v9.0+ 才能运行。 如果那不是你的环境,你可以设置 Babel 或一些 其他转译器以使其在旧版本中工作。 我很乐意为此接受拉动,或任何 其他原因,但这不是我关心的事情。 让我们一起推动生态系统向前发展!

Development

这个图书馆正在大力发展。 欢迎所有人提出请求。 因为我在写 一个使用这个库的系统,我的首要任务是让它为我的特定用途工作—— 个案。 您的用例可能与我的不匹配,所以让我们一起为创建一个出色的库 我们所有人 :-)

Build Statuscodebeat badgeGreenkeeper badgeDocumentation badgeCoverage Status

mws-advanced -- A modern Amazon Merchant Web Services API Interface for Javascript

Join the chat at https://gitter.im/mws-advanced/Lobby

What does it do?

mws-advanced provides a modern, fast, and hopefully sensible APIs to connect your Javascript application (node or browser) to the Amazon Merchant Web Services API.

Nice-to-have features:

  • Automatic throttle-retry mechanism
  • Automatic parameter validation
  • Transform Javascript Arrays into MWS List format
  • Transform Date objects into ISO-8601 date stamps

mws-advanced uses the straight-forward and very basic functionality provided by mws-simple to provide a much more advanced library for accessing MWS, than what has previously been available in the past.

Discussions

Hey, everyone! :-) This is by far my most popular repo on github at the moment, based on the number of clones and amount of traffic I'm seeing in the stats. If you think you might have a good use for this library, drop a line at Discussion :-)

Documentation / Quick-Start (I've heard enough, let's write some code)

Automatically generated documentation is available at Documentation.

Why a new mws library?

Although there are a whole lot of MWS libraries out there on the npm repository, few are actively maintained, and even fewer are written using modern Javascript. Some use Promises, but none are written to take advantage of the newest features of the language. Still fewer have documentation that doesn't just assume you are intimately familiar with the Amazon MWS API already.

I am writing this to change that. I am writing a project that needs access to the MWS API, and to do that, I needed code that interfaces well with modern code. I need code that is documented well, is intuitive to use, and doesn't leave my primary application stuck having to figure out all the vagaries of an XML response transformed into a JSON result. Or worse.

Most of all, though, this library is here to give you the pieces that I am using to build my internal project with. Enjoy! :-)

Requirements

This requires node.js v9.0+ to run. If that's not your environment, you can setup Babel or some other transpiler to make it work in older versions. I'd be happy to accept pulls for this, or any other reason, but it is not something I am at all concerned with. Let's move the ecosystem forward!

Development

This library is under heavy development. Pull requests from all are welcome. Since I am writing a system that makes use of this library, my primary priority is to make it work for my specific use- cases. Your use cases may not match mine, so let's work together to create a fantastic library for all of us :-)

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