支持 TypeScript/JavaScript shop0 应用访问 shop0 Admin API, by making it easier to perform the following actions:
- Creating online or offline access tokens for the Admin API via OAuth
- 调用 REST API
- 调用 GraphQL API
- 注册/处理 webhooks
此 SDK 提供给 Node.js 后端应用使用, 不依赖特殊的框架,所以你可以在任何技术栈中使用.
To follow these usage guides, you will need to:
- have a basic understanding of Node.js
- 拥有 shop0 开发者账号和可测试店铺
- OR 针对店铺创建私有 APP
- have a private or custom app already set up in your test store or partner account
- 采用 ngrok, 可以在你本机创建一个应用的反向代理安全通道
- add the
ngrok
URL and the appropriate redirect for your OAuth callback route to your app settings - have yarn installed
您可以参考我们的 入门指南, 它将提供有关如何使用原始Node.js代码来创建应用程序的说明, 或采用Express 框架. 两种例子都采用Typescript编码.