yandex.direct api的简单包装器
django-yandex-direct的Python项目详细描述
- 使用PIP:
$ sudo pip install django-yandex-direct
- 添加到设置您的凭据:
YANDEX_DIRECT_LOGIN=''YANDEX_DIRECT_APP_ID=''YANDEX_DIRECT_TOKEN=''YANDEX_DIRECT_SANDBOX=True
- 享受
fromyandex_directimportapifrompprintimportpprint# Pythonic stylepprint(api.get_regions().get('data'))# Native API stylepprint(api.PingAPI().get('data'))