Telegraph
This is simple Telegraph API Python wrapper.
Getting Started
Requirements
TelegraphAPI require just one additional library - Requests - the most powerful Python HTTP library
pip install requests
Installing
Now install TelegraphAPI
pip install telegraphapi
Demo
# _*_ coding: utf-8 _*_
from telegraphapi import Telegraph
telegraph = Telegraph()
telegraph.createAccount("PythonTelegraphAPI")
page = telegraph.createPage("Hello world!", html_content="<b>Welcome, TelegraphAPI!</b>")
print('http://telegra.ph/{}'.format(page['path']))
Documentation
All docs for Telegraph API located here. Here is just list of all methods:
createAccount
getAccessToken
editAccountInfo
getAccountInfo
revokeAccessToken
createPage
editPage
getPage
getPageList
getViews
Authors
- Andrew Developer - All work - GitHub
License
This project is licensed under the MIT License - see the LICENSE file for details