Skip to main content

Reverse engineered API of Freenet FUNK

Project description

Freenet FUNK API

Introduction

Freenet FUNK is cellphone plan that offers unlimited (or 1 GB of) 4G data. The plan 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 Plan

currentPlan = api.getCurrentPlan()

Order the 1GB Plan

status = api.order1GBPlan()

Order the unlimited Plan

status = api.orderUnlimitedPlan()

Start a Break

status = api.startPause()

Stop the latest Product (includes stopping a break)

status = api.stopLatestPlan()

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

MIT License

Copyright © 2019-present, Tim-Luca Lagmöller

Have fun :tada:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

funkapi-0.1.5.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

funkapi-0.1.5-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file funkapi-0.1.5.tar.gz.

File metadata

  • Download URL: funkapi-0.1.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for funkapi-0.1.5.tar.gz
Algorithm Hash digest
SHA256 36972e28a496073bf65859d3cdbb1767986a6c57daf78b02defa80ca0d1a342b
MD5 e37d3049c55e9108ee4e959dc937adf3
BLAKE2b-256 450c56549ff15a7d40a85af801919d2a2f86bad4e331cc5738d426ab18a14593

See more details on using hashes here.

File details

Details for the file funkapi-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: funkapi-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for funkapi-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 09f227cdcec587c2d46d448bb24202391ac4e75603019193566d769d1e02c179
MD5 66f357822520623063073f8e90a32fe0
BLAKE2b-256 0293addf98cd3a07fbb596121081d4905aae676f61c2b32464001bc2c0828097

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page