YouVersion API客户端
youversion的Python项目详细描述
YouVersion API客户端
YouVersion公共API客户端。此项目与YouVersion或生活。教堂. 在
- API Documentation
- 客户文档(即将推出!)
安装
pip install youversion
使用
需要YouVersion API开发人员令牌。有关获取API令牌的信息可以在YouVersion API documentation中找到
importyouversionasyvimportwebbrowserYV_TOKEN='YouVersion API Developer Token'YV_LANG=yv.Language.Englishapi=yv.API(YV_TOKEN,YV_LANG)print(api.bible_versions)# Sets the Bible version (defaults to KJV)api.bible_version='KJV'# Or use the BibleVersion objectapi.bible_version=api.get_bible_version('ASV')# Gets the current verse of the dayvotd=api.get_verse_of_the_day()# Print the verse of the day verse textprint(votd.verse.text)# Downloads the verse of the day imagevotd.image.download()# Open the verse of the day square image in a browserwebbrowser.open_new_tab(votd.image.square_url(size=256))
发展
关于如何设置开发和贡献的信息即将发布。在
- 项目
标签: