Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Home

bububa edited this page · 2 revisions
Clone this wiki locally

Welcome to pyTOP’s documentation!

Contents:

This part of the documentation covers all the interfaces of pyTOP. For parts where Requests depends on external libraries, we document the most important right here and provide links to the canonical documentation.

Basic API

All of pyTOP’s functionality can be accessed by these 3 methods. They all return an instance of the TOP object.

class api.TOP(API_KEY=None, APP_SECRET=None, ENVIRONMENT=None)

Basic API class. All the API models are inherited from this class

create(data, fields=[], models={}) Create model attributes

execute(request, session=None, method='post') pyTOP.API – TOPRequest instance

class api.TOPRequest(method_name)

pyTOP Request Object

class api.TOPDate

pyTOP Date Object

create(date_str) Convert string to datetime.datetime

Exceptions

exception errors.TOPException(code, msg=None)

There was an ambiguous exception that occurred while handling your TOP request.

API

  • 用户 API
  • 类目 API
  • 商品 API
  • 店铺 API
  • 交易 API
  • 店铺会员管理 API
  • 子账号管理 API
  • 旺旺 API
Something went wrong with that request. Please try again.