| genderapi_failed | R Documentation |
Returns the items that carry an error instead of data. Works on a
genderapi_batch (partial success) and on the genderapi_http_error
raised when every executed item failed. Retry failed items only after
billing is confirmed, and never resubmit successful items: they would be
charged again.
genderapi_failed(x)
x |
A |
A list of items, each with index, optional id,
charged_credits and error (a problem with code, status, detail
and action). An empty list when nothing failed.
res <- structure(
list(data = list(
list(index = 0L, id = "a", charged_credits = 1L,
data = list(gender = "male", result_status = "identified")),
list(index = 1L, id = "b", charged_credits = 0L,
error = list(code = "ai_upstream_error", status = 502L))
), meta = list()),
class = c("genderapi_batch", "genderapi_response")
)
genderapi_failed(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.