GithubHelp home page GithubHelp logo

top's Introduction

top Build Status Coverage Status

NPM

Taobao Open API Client.

Install

$ npm install top

Usage

var top = require('top');
var client = top.createClient({
  appkey: 'your key',
  appsecret: 'your secret'
});
// invoke 'taobao.user.get': http://api.taobao.com/apidoc/api.htm?path=cid:1-apiId:1
client.taobao_user_get({nick: 'qleelulu', fields: 'user_id,nick,seller_credit'}, function (err, user) {
  console.log(user);
});

APIs

You can find all the Taobao open APIs.

  • User
  • taobao.user.buyer.get 查询买家信息API
  • taobao.user.get 获取单个用户信息
  • taobao.user.seller.get 查询卖家用户信息
  • taobao.users.get 获取多个用户信息
  • Category (Working)
  • taobao.itemcats.authorize.get 查询商家被授权品牌列表和类目列表
  • taobao.itemcats.get 获取后台供卖家发布商品的标准商品类目
  • taobao.itemcats.increment.get 增量获取后台类目数据
  • taobao.itemprops.get 获取标准商品类目属性
  • taobao.itempropvalues.get 获取标准类目属性值
  • taobao.topats.itemcats.get 全量获取后台类目数据
  • Shop
  • taobao.shop.get (白名单用户才能调用)

Running Tests

To run the test suite first invoke the following command within the repo, installing the development dependencies:

$ npm install

then run the tests:

$ npm test

Authors

$ git summary

 project  : top
 repo age : 1 year, 8 months
 active   : 11 days
 commits  : 27
 files    : 15
 authors  :
    22  fengmk2                 81.5%
     4  Jackson Tian            14.8%
     1  coolme200               3.7%

License

(The MIT License)

Copyright (c) 2011 - 2013 fengmk2 <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

top's People

Contributors

fengmk2 avatar jacksontian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

top's Issues

node v6 下 top 运行报错

node v4 下可运行
node v6、node v8 运行即报错,看起来是 Agent 的问题……
要怎么解决呢?

const top = require('top');
const client = top.createClient({
  appkey: '111111',
  appsecret: 'xxxxxxxxxxxxxxxxxxxx'
});

client.invoke('taobao.kelude.user.get', {
  id: '111111'
}, null, null, 'GET', function(err, result) {
  // xxx
});

image

Insufficient isv permissions error

{ error_response: 
   { code: 11,
     msg: 'Insufficient isv permissions',
     sub_code: 'isv.permission-ip-whitelist-limit',
     sub_msg: 'The appkey 4272 is only allowed to call from 10.232.*.*,10.13.*.*,10.62.*.*,10.20.*.*,10.235.*.*,110.75.*.*,10.32.*.*,10.14.*.*,10.12.*.*,10.250.*.*,10.253.*.*,10.17.*.*,10.9.*.*,10.7.*.*,10.33.*.*,10.5.*.*,10.1.*.*,127.0.*.*,10.209.*.*,10.208.*.*,10.249.*.*,10.8.*.*, but your ip is 10.68.179.114' } } 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.