用于beddit睡眠跟踪器的api客户端

beddit-python的Python项目详细描述


编辑python图片::https://travis-ci.org/giginet/beddit-python.svg?branch=master
:目标:https://travis ci.org/giginet/beddit python
…图片::https://workalls.io/repos/github/giginet/beddit-python/badge.svg?branch=master
:目标:https://coveralls.io/github/giginet/beddit-python?branch=master

python中的beddit的api客户端。_编辑:http://www.beddit.com

_ API文档:https://github.com/beddit/beddit-api

代码::sh

pip安装beddit python



用法
----


>列出每天的睡眠分数
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

……代码::python


from datetime import datetime
from beddit.client import bedditclient


client=bedditclient('user@example.com',password)


start\u date=datetime(2016,7,1)
end\u date=datetime(2016,7,31)


sleeps=client.get\u sleeps(start=start\u date,end=end\u date)
打印(sleep.date.strftime('%y-%m-%d'),sleep.property.total_sleep_score)



…代码::txt

2016-07-01 75
2016-07-02 92
….



欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java根据两个数组的值对数组进行排序   具有自签名证书和NTLM代理的java Maven SSL repo错误   java自定义字体按钮不工作AndroidStudio   java通过Spring MVC web应用程序向客户端发送文本文件   Java Spring Web服务SOAP身份验证   ANT property environment=“env”无法在JAVA中检索它,但如果作为ANT命令运行,则可以正常工作   java是为spring mvc rest api或spring boot api对应用服务器的每个新请求创建的服务、存储库和组件的新实例吗?   java私有静态最终字符串未完成其工作   PKCS12的安全Java密钥重新处理   java JPA继承表每类SQLSyntaxErrorException