Giter Club home page Giter Club logo

sapi-py's Introduction

sAPI-py

Python библиотека для использования API для продавцов аукциона Мешок

# Instantiate the MeshokAPI class with your token
api = MeshokAPI('your_token_here')

# Get the list of items
item_list = api.getItemList()
print(item_list)

# Get the list of finished items
finished_item_list = api.getFinishedItemList()
print(finished_item_list)

# Get the list of unsold finished items
unsold_finished_item_list = api.getUnsoldFinishedItemList()
print(unsold_finished_item_list)

# Get the list of sold finished items
sold_finished_item_list = api.getSoldFinishedItemList()
print(sold_finished_item_list)

# Get the information of a specific item
item_info = api.getItemInfo('item_id_here')
print(item_info)

# Get the account information
account_info = api.getAccountInfo()
print(account_info)

# Get the list of common descriptions
common_description_list = api.getCommonDescriptionList()
print(common_description_list)

# Get the subcategory information
subcategory_info = api.getSubCategory('subcategory_id_here')
print(subcategory_info)

# Get the category information
category_info = api.getCategoryInfo('category_id_here')
print(category_info)

# Get the list of currencies
currency_list = api.getCurencyList()
print(currency_list)

# Get the list of countries
country_list = api.getCountryList()
print(country_list)

# Get the list of cities for a specific country
cities_list = api.getCitiesList('country_id_here')
print(cities_list)

# Stop the sale of a specific item
stop_sale_response = api.stopSale('item_id_here')
print(stop_sale_response)

# Relist a specific item
relist_item_response = api.relistItem('item_id_here')
print(relist_item_response)

# Delete a specific item
delete_item_response = api.deleteItem('item_id_here')
print(delete_item_response)

# List a new item
new_item_params = {

    #Add params
}
list_item_response = api.listItem(new_item_params)
print(list_item_response)

# Update an existing item
update_item_params = {
    'id': 'item_id_here',
    #Params
}
update_item_response = api.updateItem(update_item_params)
print(update_item_response)

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.