MkmApi

MkmApi. MkmApi

Main api class

Constructor

new MkmApi(options)

Constructor of the class

Source:
Parameters:
Name Type Description
options Object

Configuration of the library

Members

account :Account

Accessor for all account related functions

Source:
Type:

cart :Cart

Accessor for all cart related functions

Source:
Type:

market :Market

Accessor for all market related functions

Source:
Type:

messages :Messages

Accessor for all message related functions

Source:
Type:

orders :Orders

Accessor for all order related functions

Source:
Type:

stock :Stock

Accessor for all stock related functions

Source:
Type:

wants :Wants

Accessor for all want list related functions

Source:
Type:

Methods

changeUser(accessToken, accessTokenSecret)

Changes the credentials to use another user.
In case of handling requests of several users frequently it is best to create a new api instance for each one of them.

Source:
Parameters:
Name Type Description
accessToken String

accessToken of the new user

accessTokenSecret String

accessToken secret of the new user