All URIs are relative to http://localhost:34913/api/v1
Method | HTTP request | Description |
---|---|---|
create_aksk | POST /users/aksk | create aksk |
delete_aksk | DELETE /users/aksk | delete aksk |
get_aksk | GET /users/aksk | get aksk |
list_aksks | GET /users/aksks | list aksks |
Aksk create_aksk(description=description)
create aksk
from __future__ import print_function
import time
import jiaozifs_client
from jiaozifs_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic_auth
configuration = jiaozifs_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: cookie_auth
configuration = jiaozifs_client.Configuration()
configuration.api_key['internal_auth_session'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['internal_auth_session'] = 'Bearer'
# create an instance of the API class
api_instance = jiaozifs_client.AksksApi(jiaozifs_client.ApiClient(configuration))
description = 'description_example' # str | (optional)
try:
# create aksk
api_response = api_instance.create_aksk(description=description)
pprint(api_response)
except ApiException as e:
print("Exception when calling AksksApi->create_aksk: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
description | str | [optional] |
basic_auth, cookie_auth, jwt_token
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_aksk(id=id, access_key=access_key)
delete aksk
from __future__ import print_function
import time
import jiaozifs_client
from jiaozifs_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic_auth
configuration = jiaozifs_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: cookie_auth
configuration = jiaozifs_client.Configuration()
configuration.api_key['internal_auth_session'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['internal_auth_session'] = 'Bearer'
# create an instance of the API class
api_instance = jiaozifs_client.AksksApi(jiaozifs_client.ApiClient(configuration))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | (optional)
access_key = 'access_key_example' # str | (optional)
try:
# delete aksk
api_instance.delete_aksk(id=id, access_key=access_key)
except ApiException as e:
print("Exception when calling AksksApi->delete_aksk: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | [optional] | |
access_key | str | [optional] |
void (empty response body)
basic_auth, cookie_auth, jwt_token
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SafeAksk get_aksk(id=id, access_key=access_key)
get aksk
from __future__ import print_function
import time
import jiaozifs_client
from jiaozifs_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic_auth
configuration = jiaozifs_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: cookie_auth
configuration = jiaozifs_client.Configuration()
configuration.api_key['internal_auth_session'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['internal_auth_session'] = 'Bearer'
# create an instance of the API class
api_instance = jiaozifs_client.AksksApi(jiaozifs_client.ApiClient(configuration))
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # str | (optional)
access_key = 'access_key_example' # str | (optional)
try:
# get aksk
api_response = api_instance.get_aksk(id=id, access_key=access_key)
pprint(api_response)
except ApiException as e:
print("Exception when calling AksksApi->get_aksk: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | [optional] | |
access_key | str | [optional] |
basic_auth, cookie_auth, jwt_token
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AkskList list_aksks(after=after, amount=amount)
list aksks
from __future__ import print_function
import time
import jiaozifs_client
from jiaozifs_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basic_auth
configuration = jiaozifs_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: cookie_auth
configuration = jiaozifs_client.Configuration()
configuration.api_key['internal_auth_session'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['internal_auth_session'] = 'Bearer'
# create an instance of the API class
api_instance = jiaozifs_client.AksksApi(jiaozifs_client.ApiClient(configuration))
after = 789 # int | return items after this value (optional)
amount = 100 # int | how many items to return (optional) (default to 100)
try:
# list aksks
api_response = api_instance.list_aksks(after=after, amount=amount)
pprint(api_response)
except ApiException as e:
print("Exception when calling AksksApi->list_aksks: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
after | int | return items after this value | [optional] |
amount | int | how many items to return | [optional] [default to 100] |
basic_auth, cookie_auth, jwt_token
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]