Skip to content

Instantly share code, notes, and snippets.

@teror4uks
Created March 16, 2018 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teror4uks/259552e7d85fcec4adba8d446545239c to your computer and use it in GitHub Desktop.
Save teror4uks/259552e7d85fcec4adba8d446545239c to your computer and use it in GitHub Desktop.
MoySklad
import requests
MS_STOCK_URL = 'https://online.moysklad.ru/exchange/rest/stock/json'
MOD_TRUE = 'showConsignments=true'
ALL_STOCK = 'stockMode=ALL_STOCK'
MS_USER = 'user'
MS_PASSWORD = 'pass'
with_mods = '{}?{}&{}'.format(MS_STOCK_URL, MOD_TRUE, ALL_STOCK)
r = requests.get(with_mods, auth=(MS_USER, MS_PASSWORD))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment