Name: youzan-sdk
Owner: ??
Description: Yet Another Node.js SDK for http://open.youzan.com
Created: 2016-01-28 02:43:35.0
Updated: 2018-05-09 13:56:54.0
Pushed: 2017-10-24 09:44:18.0
Size: 292
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Yet Another Node.js SDK for http://www.youzanyun.com
???SDK
SDK = require('youzan-sdk');
??SDK?? https://console.youzanyun.com/application/setting ??API??????? AppID?AppSecert
sdk = SDK({ key: AppID, secret: AppSecert });
GET?? ??????????
get('kdt.items.onsale.get', {
page_size: 20,
...
hen(function(data) {
// do some thing with data
POST ????
post('kdt.item.add', {
price: 100,
title: 'Node.js sdk test',
is_virtual: 0,
post_fee: 10.00
images: [__dirname + '/test.jpg']
hen(function(data) {
// make some thing
m install youzan-sdk --save