All URIs are relative to https://api.mosquitoalert.com/v1
Method | HTTP request | Description |
---|---|---|
fixes_create | POST /fixes/ |
Fix fixes_create(fix_request)
- Api Key Authentication (cookieAuth):
- Api Key Authentication (tokenAuth):
- Bearer (JWT) Authentication (jwtAuth):
import mosquito_alert
from mosquito_alert.models.fix import Fix
from mosquito_alert.models.fix_request import FixRequest
from mosquito_alert.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.mosquitoalert.com/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = mosquito_alert.Configuration(
host = "https://api.mosquitoalert.com/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: cookieAuth
configuration.api_key['cookieAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['cookieAuth'] = 'Bearer'
# Configure API key authorization: tokenAuth
configuration.api_key['tokenAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['tokenAuth'] = 'Bearer'
# Configure Bearer authorization (JWT): jwtAuth
configuration = mosquito_alert.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with mosquito_alert.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mosquito_alert.FixesApi(api_client)
fix_request = mosquito_alert.FixRequest() # FixRequest |
try:
api_response = api_instance.fixes_create(fix_request)
print("The response of FixesApi->fixes_create:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FixesApi->fixes_create: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
fix_request | FixRequest |
cookieAuth, tokenAuth, jwtAuth
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]