DreamGraph
The Python module for Telegraph API.
You can easily download this module via
pip install dreamgraph
Examples
Your account
LogIn
method.
1. If you have an existing account, use from dreamgraph import LogIn client = LogIn('ACCESS_TOKEN')NOTE: ACCESS_TOKEN is your access token for your Telegraph account.
NewAccount
method.
2. In order to create new Telegraph account use from dreamgraph import NewAccount client = NewAccount(short_name='Short_name', author_name='Your_Name', author_url='https://your_address.com')
Account info
get_account_info
method.
Getting your account details is much easier, just use details = client.get_account_info() print(details)
NOTE: the function returns a dictionary object with all necessary values.