849 B
849 B
docs / net.thauvin.erik.akismet / Akismet / executeMethod
executeMethod
@JvmOverloads fun executeMethod(apiUrl: HttpUrl?, formBody: FormBody, trueOnError:
Boolean
= false):
Boolean
(source)
Execute a call to an Akismet REST API method.
Parameters
apiUrl
- The Akismet API URL endpoint. (e.g. https://rest.akismet.com/1.1/verify-key)
formBody
- The HTTP POST form body containing the request parameters to be submitted.
trueOnError
- Set to return true
on error (IO, empty response, etc.)