Reverse engineered API of Freenet FUNK
Project description
Freenet FUNK API
Introduction
Freenet FUNK is cellphone tariff that offers unlimited (or 1 GB of) 4G data. The tariff is can be started, stopped and paused daily.
To make the most out of this flexibility, I reverse engineered the API to give anyone the ability to develop amazing apps on their own!
Prerequisites
- Python >=3.2
- pip
Installation
git clone https://github.com/lagmoellertim/freenet-funk-api.git
cd freenet-funk-api
python3 setup.py install
Build
git clone https://github.com/lagmoellertim/freenet-funk-api.git
cd freenet-funk-api
python3 setup.py sdist bdist_wheel
Usage
Initialize the API
from funkapi import FunkAPI
api = FunkAPI("*username*", "*password*")
Get a Token (not really necessary to do that manually but I left the option)
token = api.getToken()
Initialize the API with a predefined Token
from funkapi import FunkAPI
api = FunkAPI("", "", token="*token*")
Check the validity of a Token (also not really necessary to do manually)
isValid = api.testToken("*token*")
Get Dashboard Data (includes every piece of data FUNK stores of you)
data = api.getData()
Get Personal Information (email, name, birthday, …)
personalInfo = api.getPersonalInfo()
Get a List of your ordered Products
products = api.getOrderedProducts()
Get the currently active Tariff
currentTariff = api.getCurrentTariff()
Order the 1GB Tariff
status = api.order1GBTariff()
Order the unlimited Tariff
status = api.orderUnlimitedTariff()
Start a Break
status = api.startPause()
Stop the latest Product (includes stopping a break)
status = api.stopLatestTariff()
Contributing
If you are missing a feature or have new idea, go for it! That is what open-source is for!
Author
Tim-Luca Lagmöller (@lagmoellertim)
Donate
You can also contribute by buying me a coffee.
License
Copyright © 2019-present, Tim-Luca Lagmöller
Have fun :tada:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for freenet_funk_api-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a018ff962a853e67758debb610578b41b6856e5abaad277f5c9d17439ac56fa9 |
|
MD5 | 311daaa2b0a9fdbc54ee31ec99e81add |
|
BLAKE2b-256 | b1ae2708b6e36e2e3b50a0114d949d9968758e938993c3b7ef9f35ff11f9e9e5 |