All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| agencies_controller_create_agency | POST /agencies | |
| agencies_controller_get_agency_by_users | GET /agencies | |
| agencies_controller_update_agency | POST /agencies/action/{action}/{id} |
agencies_controller_create_agency(body)
import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = postiz_python_client.AgenciesApi(api_client)
body = None # object |
try:
api_instance.agencies_controller_create_agency(body)
except Exception as e:
print("Exception when calling AgenciesApi->agencies_controller_create_agency: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | object |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
agencies_controller_get_agency_by_users()
import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = postiz_python_client.AgenciesApi(api_client)
try:
api_instance.agencies_controller_get_agency_by_users()
except Exception as e:
print("Exception when calling AgenciesApi->agencies_controller_get_agency_by_users: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
agencies_controller_update_agency(action, id)
import postiz_python_client
from postiz_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = postiz_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with postiz_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = postiz_python_client.AgenciesApi(api_client)
action = 'action_example' # str |
id = 'id_example' # str |
try:
api_instance.agencies_controller_update_agency(action, id)
except Exception as e:
print("Exception when calling AgenciesApi->agencies_controller_update_agency: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| action | str | ||
| id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]