All URIs are relative to https://api.mosquitoalert.com/v1
Method | HTTP request | Description |
---|---|---|
create | POST /bites/ | |
destroy | DELETE /bites/{uuid}/ | |
list | GET /bites/ | |
list_mine | GET /me/bites/ | |
retrieve | GET /bites/{uuid}/ |
Bite create(bite_request)
library(MosquitoAlert)
# prepare function argument(s)
var_bite_request <- BiteRequest$new("created_at_example", "sent_at_example", LocationRequest$new("current", Location_point$new(123, 123)), "note_example", c("tags_example"), "indoors", "now", 123, 123, 123, 123, 123, 123) # BiteRequest |
api_instance <- mosquitoalert_api$new()
# Configure API key authorization: cookieAuth
api_instance$api_client$api_keys["sessionid"] <- Sys.getenv("API_KEY")
# Configure API key authorization: tokenAuth
# api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure HTTP bearer authorization: jwtAuth
# api_instance$api_client$bearer_token <- Sys.getenv("BEARER_TOKEN")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$create(var_bite_requestdata_file = "result.txt")
result <- api_instance$bites_api$create(var_bite_request)
dput(result)
Name | Type | Description | Notes |
---|---|---|---|
bite_request | BiteRequest |
cookieAuth, tokenAuth, jwtAuth
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
400 | - | |
401 | - | |
403 | - | |
404 | - | |
201 | - |
destroy(uuid)
library(MosquitoAlert)
# prepare function argument(s)
var_uuid <- "uuid_example" # character |
api_instance <- mosquitoalert_api$new()
# Configure API key authorization: cookieAuth
api_instance$api_client$api_keys["sessionid"] <- Sys.getenv("API_KEY")
# Configure API key authorization: tokenAuth
# api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure HTTP bearer authorization: jwtAuth
# api_instance$api_client$bearer_token <- Sys.getenv("BEARER_TOKEN")
api_instance$bites_api$destroy(var_uuid)
Name | Type | Description | Notes |
---|---|---|---|
uuid | character |
void (empty response body)
cookieAuth, tokenAuth, jwtAuth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
401 | - | |
403 | - | |
404 | - | |
204 | No response body | - |
PaginatedBiteList list(created_at_after = var.created_at_after, created_at_before = var.created_at_before, location_country_id = var.location_country_id, location_nuts_2 = var.location_nuts_2, location_nuts_3 = var.location_nuts_3, order_by = var.order_by, page = var.page, page_size = var.page_size, received_at_after = var.received_at_after, received_at_before = var.received_at_before, short_id = var.short_id, updated_at_after = var.updated_at_after, updated_at_before = var.updated_at_before, user_uuid = var.user_uuid)
library(MosquitoAlert)
# prepare function argument(s)
var_created_at_after <- "created_at_after_example" # character | Created at (Optional)
var_created_at_before <- "created_at_before_example" # character | Created at (Optional)
var_location_country_id <- 56 # integer | (Optional)
var_location_nuts_2 <- "location_nuts_2_example" # character | (Optional)
var_location_nuts_3 <- "location_nuts_3_example" # character | (Optional)
var_order_by <- c("-created_at") # array[character] | Ordenado (Optional)
var_page <- 56 # integer | A page number within the paginated result set. (Optional)
var_page_size <- 56 # integer | Number of results to return per page. (Optional)
var_received_at_after <- "received_at_after_example" # character | Received at (Optional)
var_received_at_before <- "received_at_before_example" # character | Received at (Optional)
var_short_id <- "short_id_example" # character | Short ID (Optional)
var_updated_at_after <- "updated_at_after_example" # character | Update at (Optional)
var_updated_at_before <- "updated_at_before_example" # character | Update at (Optional)
var_user_uuid <- "user_uuid_example" # character | (Optional)
api_instance <- mosquitoalert_api$new()
# Configure API key authorization: cookieAuth
api_instance$api_client$api_keys["sessionid"] <- Sys.getenv("API_KEY")
# Configure API key authorization: tokenAuth
# api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure HTTP bearer authorization: jwtAuth
# api_instance$api_client$bearer_token <- Sys.getenv("BEARER_TOKEN")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$list(created_at_after = var_created_at_after, created_at_before = var_created_at_before, location_country_id = var_location_country_id, location_nuts_2 = var_location_nuts_2, location_nuts_3 = var_location_nuts_3, order_by = var_order_by, page = var_page, page_size = var_page_size, received_at_after = var_received_at_after, received_at_before = var_received_at_before, short_id = var_short_id, updated_at_after = var_updated_at_after, updated_at_before = var_updated_at_before, user_uuid = var_user_uuiddata_file = "result.txt")
result <- api_instance$bites_api$list(created_at_after = var_created_at_after, created_at_before = var_created_at_before, location_country_id = var_location_country_id, location_nuts_2 = var_location_nuts_2, location_nuts_3 = var_location_nuts_3, order_by = var_order_by, page = var_page, page_size = var_page_size, received_at_after = var_received_at_after, received_at_before = var_received_at_before, short_id = var_short_id, updated_at_after = var_updated_at_after, updated_at_before = var_updated_at_before, user_uuid = var_user_uuid)
dput(result)
Name | Type | Description | Notes |
---|---|---|---|
created_at_after | character | Created at | [optional] |
created_at_before | character | Created at | [optional] |
location_country_id | integer | [optional] | |
location_nuts_2 | character | [optional] | |
location_nuts_3 | character | [optional] | |
order_by | Enum [-created_at, -received_at, created_at, received_at] | Ordenado | [optional] |
page | integer | A page number within the paginated result set. | [optional] |
page_size | integer | Number of results to return per page. | [optional] |
received_at_after | character | Received at | [optional] |
received_at_before | character | Received at | [optional] |
short_id | character | Short ID | [optional] |
updated_at_after | character | Update at | [optional] |
updated_at_before | character | Update at | [optional] |
user_uuid | character | [optional] |
cookieAuth, tokenAuth, jwtAuth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
400 | - | |
401 | - | |
404 | - | |
200 | - |
PaginatedBiteList list_mine(created_at_after = var.created_at_after, created_at_before = var.created_at_before, location_country_id = var.location_country_id, location_nuts_2 = var.location_nuts_2, location_nuts_3 = var.location_nuts_3, order_by = var.order_by, page = var.page, page_size = var.page_size, received_at_after = var.received_at_after, received_at_before = var.received_at_before, short_id = var.short_id, updated_at_after = var.updated_at_after, updated_at_before = var.updated_at_before, user_uuid = var.user_uuid)
Get Current User's Bites
library(MosquitoAlert)
# prepare function argument(s)
var_created_at_after <- "created_at_after_example" # character | Created at (Optional)
var_created_at_before <- "created_at_before_example" # character | Created at (Optional)
var_location_country_id <- 56 # integer | (Optional)
var_location_nuts_2 <- "location_nuts_2_example" # character | (Optional)
var_location_nuts_3 <- "location_nuts_3_example" # character | (Optional)
var_order_by <- c("-created_at") # array[character] | Ordenado (Optional)
var_page <- 56 # integer | A page number within the paginated result set. (Optional)
var_page_size <- 56 # integer | Number of results to return per page. (Optional)
var_received_at_after <- "received_at_after_example" # character | Received at (Optional)
var_received_at_before <- "received_at_before_example" # character | Received at (Optional)
var_short_id <- "short_id_example" # character | Short ID (Optional)
var_updated_at_after <- "updated_at_after_example" # character | Update at (Optional)
var_updated_at_before <- "updated_at_before_example" # character | Update at (Optional)
var_user_uuid <- "user_uuid_example" # character | (Optional)
api_instance <- mosquitoalert_api$new()
# Configure HTTP bearer authorization: jwtAuth
api_instance$api_client$bearer_token <- Sys.getenv("BEARER_TOKEN")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$list_mine(created_at_after = var_created_at_after, created_at_before = var_created_at_before, location_country_id = var_location_country_id, location_nuts_2 = var_location_nuts_2, location_nuts_3 = var_location_nuts_3, order_by = var_order_by, page = var_page, page_size = var_page_size, received_at_after = var_received_at_after, received_at_before = var_received_at_before, short_id = var_short_id, updated_at_after = var_updated_at_after, updated_at_before = var_updated_at_before, user_uuid = var_user_uuiddata_file = "result.txt")
result <- api_instance$bites_api$list_mine(created_at_after = var_created_at_after, created_at_before = var_created_at_before, location_country_id = var_location_country_id, location_nuts_2 = var_location_nuts_2, location_nuts_3 = var_location_nuts_3, order_by = var_order_by, page = var_page, page_size = var_page_size, received_at_after = var_received_at_after, received_at_before = var_received_at_before, short_id = var_short_id, updated_at_after = var_updated_at_after, updated_at_before = var_updated_at_before, user_uuid = var_user_uuid)
dput(result)
Name | Type | Description | Notes |
---|---|---|---|
created_at_after | character | Created at | [optional] |
created_at_before | character | Created at | [optional] |
location_country_id | integer | [optional] | |
location_nuts_2 | character | [optional] | |
location_nuts_3 | character | [optional] | |
order_by | Enum [-created_at, -received_at, created_at, received_at] | Ordenado | [optional] |
page | integer | A page number within the paginated result set. | [optional] |
page_size | integer | Number of results to return per page. | [optional] |
received_at_after | character | Received at | [optional] |
received_at_before | character | Received at | [optional] |
short_id | character | Short ID | [optional] |
updated_at_after | character | Update at | [optional] |
updated_at_before | character | Update at | [optional] |
user_uuid | character | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
400 | - | |
401 | - | |
403 | - | |
404 | - | |
200 | - |
Bite retrieve(uuid)
library(MosquitoAlert)
# prepare function argument(s)
var_uuid <- "uuid_example" # character |
api_instance <- mosquitoalert_api$new()
# Configure API key authorization: cookieAuth
api_instance$api_client$api_keys["sessionid"] <- Sys.getenv("API_KEY")
# Configure API key authorization: tokenAuth
# api_instance$api_client$api_keys["Authorization"] <- Sys.getenv("API_KEY")
# Configure HTTP bearer authorization: jwtAuth
# api_instance$api_client$bearer_token <- Sys.getenv("BEARER_TOKEN")
# to save the result into a file, simply add the optional `data_file` parameter, e.g.
# result <- api_instance$retrieve(var_uuiddata_file = "result.txt")
result <- api_instance$bites_api$retrieve(var_uuid)
dput(result)
Name | Type | Description | Notes |
---|---|---|---|
uuid | character |
cookieAuth, tokenAuth, jwtAuth
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
401 | - | |
404 | - | |
200 | - |