This package is created to communicate with Kolizei api, which is a simple vk mini app. This app can be used to create a system of points in a community and easily administrate it.
- My github link: Foxdogface.
- Repository link: Python Kolizei API.
- Description of original get-post Kolizei api made by originals creators: Kolizei API.
This library is installable as a pip package.
pip install soundcloud-lib
import kolizei_api
api = kolizei_api.Kolizei_api(secret_token="", group_id=None)
- secret_token(str) - secret token which you must receive from kolizei application how a group administrator. Mandatory argument.
- group_id(int) - id of you group where the kolizei app is installed. Mandatory argument.
import kolizei_api
api = kolizei_api.Kolizei_api(secret_token="", group_id=None)
api.get_rating(count=None, offset=None)
- count(int) - Number of firsts places of rating to recive. The biggest number is 1000. If you need to receive more use the "offset" argument. The default is 1000.
- offset(int) - The argument to set an offset to collect some specials users. The default is 1000.
import kolizei_api
api = kolizei_api.Kolizei_api(secret_token="", group_id=None)
api.get_by_id(user_id=None)
- user_id(int) - VK user id. Mandatory argument.
import kolizei_api
api = kolizei_api.Kolizei_api(secret_token="", group_id=None)
api.users_changePoints(user_ids=None, points=None)
- user_ids(list with numbers(int)) - Ids of users whose scores you need to change. Mandatory argument.
- points(list with numbers(int)) - How many points you need to add or subtract (number with a minus "-"). You can add only one number for all users or few numbers for each users, if the number of users isn't equal to the length of points list the last digit will be applied to unmatched ones. Mandatory argument.
import kolizei_api
api = kolizei_api.Kolizei_api(secret_token="", group_id=None)
api.users_resetPoints(user_ids=None)
- user_ids(list with numbers(int)) - Ids of vk users which you need to remove all points. Mandatory argument.
import kolizei_api
api = kolizei_api.Kolizei_api(secret_token="", group_id=None)
api.users_ban(user_ids=None)
- user_ids(list with numbers(int)) - Ids of vk users which you need to ban.
import kolizei_api
api = kolizei_api.Kolizei_api(secret_token="", group_id=None)
api.users_unban(user_ids=None)
- user_ids(list with numbers(int)) - Ids of vk users which you need to unban.
I will accept with pleasure any critics and other advice because it's actually my first python module created by myself. You can report them using the issues tab. Also feel free to request new features.