Fleep Platform API Tutorial

Quick overview on how to create platform accounts.

Basics

Usage

Platform accounts can be created using special “master” user credentials (obtained via https://fleep.io/api/account/login).

Python example:

>>> import requests
>>>
>>> r = requests.post('https://fleep.io/api/paas/account/create',
...     json={"ticket": master_ticket, "display_name": "x-man"},
...     cookies=master_cookie)
>>>
>>> print r.json()["account_id"]
3c2c8dee-02c6-4280-9306-d76a932cd79e
>>>
>>> print r.json()["ticket"]
6528701a3f619b6aa001
>>>
>>> print r.cookies.get_dict()
{'token_id': '84d73134-ca41-4dda-b818-f724f42cd79e'}

Credentials returned from https://fleep.io/api/paas/account/create can be used to authenticate other API calls on behalf of the platform account.

Table Of Contents

Previous topic

Platform API Reference