All URIs are relative to https://api.crowdemotion.co.uk/v1
Method | HTTP request | Description |
---|---|---|
response_get | GET /response | Find all Responses |
response_post | POST /response | Create a Response |
response_response_id_delete | DELETE /response/{response_id} | Delete a Response |
response_response_id_get | GET /response/{response_id} | Find a Response |
response_response_id_metadata_get | GET /response/{response_id}/metadata | Show Response Metadata |
response_response_id_metadata_post | POST /response/{response_id}/metadata | Add Response Metadata |
response_response_id_put | PUT /response/{response_id} | Update a Response |
list[Response] response_get(skip=skip, limit=limit, where=where, sort=sort)
Find all Responses
Permissions: ✓ Respondent ✗ Customer ✓ Manager
import time
import crowdemotion_api_client_python
from crowdemotion_api_client_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
crowdemotion_api_client_python.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# crowdemotion_api_client_python.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = crowdemotion_api_client_python.ResponseApi()
skip = 56 # int | The number of results to skip. (optional)
limit = 56 # int | The maximum number of results to return. (optional)
where = 'where_example' # str | JSON formatted string. (optional)
sort = 'sort_example' # str | Attribute used to sort results. (optional)
try:
# Find all Responses
api_response = api_instance.response_get(skip=skip, limit=limit, where=where, sort=sort)
pprint(api_response)
except ApiException as e:
print "Exception when calling ResponseApi->response_get: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
skip | int | The number of results to skip. | [optional] |
limit | int | The maximum number of results to return. | [optional] |
where | str | JSON formatted string. | [optional] |
sort | str | Attribute used to sort results. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response response_post(body)
Create a Response
Permissions: ✓ Respondent ✗ Customer ✓ Manager
import time
import crowdemotion_api_client_python
from crowdemotion_api_client_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
crowdemotion_api_client_python.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# crowdemotion_api_client_python.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = crowdemotion_api_client_python.ResponseApi()
body = crowdemotion_api_client_python.ResponseCreation() # ResponseCreation | Request body
try:
# Create a Response
api_response = api_instance.response_post(body)
pprint(api_response)
except ApiException as e:
print "Exception when calling ResponseApi->response_post: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
body | ResponseCreation | Request body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str response_response_id_delete(response_id)
Delete a Response
Permissions: ✗ Respondent ✗ Customer ✓ Manager
import time
import crowdemotion_api_client_python
from crowdemotion_api_client_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
crowdemotion_api_client_python.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# crowdemotion_api_client_python.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = crowdemotion_api_client_python.ResponseApi()
response_id = 56 # int | ID of Response to update.
try:
# Delete a Response
api_response = api_instance.response_response_id_delete(response_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling ResponseApi->response_response_id_delete: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
response_id | int | ID of Response to update. |
str
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response response_response_id_get(response_id)
Find a Response
Permissions: ✓ Respondent ✗ Customer ✓ Manager
import time
import crowdemotion_api_client_python
from crowdemotion_api_client_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
crowdemotion_api_client_python.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# crowdemotion_api_client_python.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = crowdemotion_api_client_python.ResponseApi()
response_id = 56 # int | ID of the Response
try:
# Find a Response
api_response = api_instance.response_response_id_get(response_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling ResponseApi->response_response_id_get: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
response_id | int | ID of the Response |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseMetadataResponse response_response_id_metadata_get(response_id)
Show Response Metadata
Permissions: ✓ Respondent ✗ Customer ✓ Manager
import time
import crowdemotion_api_client_python
from crowdemotion_api_client_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
crowdemotion_api_client_python.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# crowdemotion_api_client_python.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = crowdemotion_api_client_python.ResponseApi()
response_id = 56 # int | ID of the Response
try:
# Show Response Metadata
api_response = api_instance.response_response_id_metadata_get(response_id)
pprint(api_response)
except ApiException as e:
print "Exception when calling ResponseApi->response_response_id_metadata_get: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
response_id | int | ID of the Response |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseMetadataResponse response_response_id_metadata_post(response_id, body)
Add Response Metadata
Permissions: ✓ Respondent ✗ Customer ✓ Manager
import time
import crowdemotion_api_client_python
from crowdemotion_api_client_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
crowdemotion_api_client_python.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# crowdemotion_api_client_python.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = crowdemotion_api_client_python.ResponseApi()
response_id = 56 # int | ID of the Response.
body = crowdemotion_api_client_python.ResponseMetadata() # ResponseMetadata | Request body
try:
# Add Response Metadata
api_response = api_instance.response_response_id_metadata_post(response_id, body)
pprint(api_response)
except ApiException as e:
print "Exception when calling ResponseApi->response_response_id_metadata_post: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
response_id | int | ID of the Response. | |
body | ResponseMetadata | Request body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Response response_response_id_put(response_id, body)
Update a Response
Permissions: ✓ Respondent ✗ Customer ✓ Manager
import time
import crowdemotion_api_client_python
from crowdemotion_api_client_python.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
crowdemotion_api_client_python.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# crowdemotion_api_client_python.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = crowdemotion_api_client_python.ResponseApi()
response_id = 56 # int | ID of Response to update.
body = crowdemotion_api_client_python.ResponseCreation() # ResponseCreation | Request body
try:
# Update a Response
api_response = api_instance.response_response_id_put(response_id, body)
pprint(api_response)
except ApiException as e:
print "Exception when calling ResponseApi->response_response_id_put: %s\n" % e
Name | Type | Description | Notes |
---|---|---|---|
response_id | int | ID of Response to update. | |
body | ResponseCreation | Request body |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]