All URIs are relative to https://api.clever.com
Method | HTTP request | Description |
---|---|---|
get_contacts_for_user | GET /users/{id}/mycontacts | |
get_district_for_user | GET /users/{id}/district | |
get_resources_for_user | GET /users/{id}/resources | |
get_schools_for_user | GET /users/{id}/schools | |
get_sections_for_user | GET /users/{id}/sections | |
get_students_for_user | GET /users/{id}/mystudents | |
get_teachers_for_user | GET /users/{id}/myteachers | |
get_user | GET /users/{id} | |
get_users | GET /users |
UsersResponse get_contacts_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
Returns the contact users for a student user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
limit = 56 # int | (optional)
starting_after = 'starting_after_example' # str | (optional)
ending_before = 'ending_before_example' # str | (optional)
try:
api_response = api_instance.get_contacts_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_contacts_for_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
limit | int | [optional] | |
starting_after | str | [optional] | |
ending_before | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DistrictResponse get_district_for_user(id)
Returns the district for a user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
try:
api_response = api_instance.get_district_for_user(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_district_for_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesResponse get_resources_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
Returns the resources for a user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
limit = 56 # int | (optional)
starting_after = 'starting_after_example' # str | (optional)
ending_before = 'ending_before_example' # str | (optional)
try:
api_response = api_instance.get_resources_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_resources_for_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
limit | int | [optional] | |
starting_after | str | [optional] | |
ending_before | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SchoolsResponse get_schools_for_user(id, primary=primary, limit=limit, starting_after=starting_after, ending_before=ending_before)
Returns the schools for a user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
primary = 'primary_example' # str | (optional)
limit = 56 # int | (optional)
starting_after = 'starting_after_example' # str | (optional)
ending_before = 'ending_before_example' # str | (optional)
try:
api_response = api_instance.get_schools_for_user(id, primary=primary, limit=limit, starting_after=starting_after, ending_before=ending_before)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_schools_for_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
primary | str | [optional] | |
limit | int | [optional] | |
starting_after | str | [optional] | |
ending_before | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SectionsResponse get_sections_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
Returns the sections for a user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
limit = 56 # int | (optional)
starting_after = 'starting_after_example' # str | (optional)
ending_before = 'ending_before_example' # str | (optional)
try:
api_response = api_instance.get_sections_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_sections_for_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
limit | int | [optional] | |
starting_after | str | [optional] | |
ending_before | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsersResponse get_students_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
Returns the student users for a teacher or contact user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
limit = 56 # int | (optional)
starting_after = 'starting_after_example' # str | (optional)
ending_before = 'ending_before_example' # str | (optional)
try:
api_response = api_instance.get_students_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_students_for_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
limit | int | [optional] | |
starting_after | str | [optional] | |
ending_before | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsersResponse get_teachers_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
Returns the teacher users for a student user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
limit = 56 # int | (optional)
starting_after = 'starting_after_example' # str | (optional)
ending_before = 'ending_before_example' # str | (optional)
try:
api_response = api_instance.get_teachers_for_user(id, limit=limit, starting_after=starting_after, ending_before=ending_before)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_teachers_for_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | ||
limit | int | [optional] | |
starting_after | str | [optional] | |
ending_before | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserResponse get_user(id)
Returns a specific user
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
id = 'id_example' # str |
try:
api_response = api_instance.get_user(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UsersResponse get_users(limit=limit, role=role, starting_after=starting_after, ending_before=ending_before, count=count)
Returns a list of contact, district admin, staff, student, and/or teacher users
from __future__ import print_function
import time
import clever_client
from clever_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: oauth
configuration = clever_client.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = clever_client.UsersApi(clever_client.ApiClient(configuration))
limit = 56 # int | (optional)
role = 'role_example' # str | (optional)
starting_after = 'starting_after_example' # str | (optional)
ending_before = 'ending_before_example' # str | (optional)
count = 'count_example' # str | (optional)
try:
api_response = api_instance.get_users(limit=limit, role=role, starting_after=starting_after, ending_before=ending_before, count=count)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
limit | int | [optional] | |
role | str | [optional] | |
starting_after | str | [optional] | |
ending_before | str | [optional] | |
count | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]