Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
1688-open-sdk
Advanced tools
Readme
1688开放平台node sdk,因官方没有提供node版本sdk,因此提供非官方版,希望对大家有用,欢迎issue和pr。
使用npm:
npm i 1688-open-sdk -S
或者yarn:
yarn add 1688-open-sdk
import ApiExecutor from "1688-open-sdk"
或者
const ApiExecutor = require("1688-open-sdk")
使用1688开放平台的appkey,appsecret进行初始化:
const apiExecutor = new ApiExecutor(process.env.APPKEY, process.env.APPSECRET)
// 使用refreshToken更新AccessToken
const {access_token} = await apiExecutor.refreshToken2AccessToken(refresh_token)
例如 跨境产品以图搜图:
apiExecutor.execute(
'com.alibaba.linkplus/alibaba.cross.similar.offer.search',
{
picUrl:'https://img.alicdn.com/imgextra/i1/O1CN01PwAoB21LuSuZE9Oqx_!!6000000001359-2-tps-1170-597.png',
page: 1
},
access_token
)
注意调用api返回的都是promise,因此可使用async/await。
FAQs
1688开放平台node SDK
The npm package 1688-open-sdk receives a total of 4 weekly downloads. As such, 1688-open-sdk popularity was classified as not popular.
We found that 1688-open-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.