Topics

Example of API call via Python


valcos
 

A simple example to query the API with the requests library:

import requests
from requests.auth import HTTPBasicAuth

token = 'your-token-obtained-via-the-login-call'

url = "https://api.groups.io/v1/getperms"
payload = {'group_id': 7}
r = requests.get(url, params=payload, auth=HTTPBasicAuth(token, ''))

print(r.json())