This repository has been archived on 2025-06-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pydusken/example.py
T
2013-10-27 21:20:48 +01:00

21 lines
417 B
Python

import pprint
import json
import pydusken
# credentials
username = "admin"
password = "admin"
# setup client
client = pydusken.DuskenApi(username=username, password=password)
# get member
pprint.pprint(client.members.get('1'))
# get member groups
pprint.pprint(client.members.get_groups('1'))
# update member password to the same password as you have
pprint.pprint(client.members.update('1', password='admin'))