Skip to content

geertmeersman/telenetapi

Repository files navigation

telenetapi

Python library to communicate with the Telenet API

API Example

"""Test for telenetapi."""
from telenetapi import TelenetClient

import  asyncio
import json

async def main():

    client = TelenetClient('<login>', '<password>', 'nl')  # language in ['en', 'nl', 'fr']
    userdetails = client.login()
    print(f"{userdetails.get('first_name')} {userdetails.get('last_name')}")
    client.get_data()
    print(json.dumps(client.data, indent=2))

asyncio.run(main())

About

Python Library to communicate with the Telenet API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Contributors 2

  •  
  •  

Languages