The Apex response classes include standard response methods for Slack's Web API methods. These response methods are indicated on the Apex response classes that support them.
getError()
Gets the error on the response. See the corresponding Slack method's list of errors, for example, calls.add method’s list of errors.
Signature
public String getError()
Return Value
Type: String
getHttpResponseHeaders()
Signature
public Map<String,List<String>> getHttpResponseHeaders()
Return Value
Type: Map<String,List<String>>
getNeeded()
Signature
public String getNeeded()
Return Value
Type: String
getProvided()
Signature
public String getProvided()
Return Value
Type: String
getWarning()
Gets the warning on the response. See the corresponding Slack method's list of errors, for example, calls.add method’s list of warnings.
Signature
public String getWarning()
Return Value
Type: String
isOk()
Specifies whether the API call is successful.
Signature
public Boolean isOk()
Return Value
Type: Boolean
isSnoozeIsIndefinite()
Signature
public Boolean isSnoozeIsIndefinite()
Return Value
Type: Boolean
setError(error)
Sets the error message in the response.
Signature
public void setError(String error)
Parameters
error
Type: String
Return Value
Type: void
setHttpResponseHeaders(httpResponseHeaders)
Signature
public void setHttpResponseHeaders(Map<String,List<String>> httpResponseHeaders)
Parameters
error
Type: Map<String,List<String>>
Return Value
Type: void
setNeeded(needed)
Signature
public void setNeeded(String needed)
Parameters
needed
Type: String
Return Value
Type: void
setOk(ok)
Specifies whether the API call is successful.
Signature
public void setOk(Boolean ok)
Parameters
ok
Type: Boolean
Return Value
Type: void
setProvided(provided)
Signature
public void setProvided(String provided)
Parameters
provided
Type: String
Return Value
Type: void
setSnoozeIsIndefinite(snoozeIsIndefinite)
Signature
public void setSnoozeIsIndefinite(Boolean snoozeIsIndefinite)
Parameters
snoozeIsIndefinite
Type: Boolean
Return Value
Type: void
setWarning(warning)
Sets the warning message in the response.
Signature
public void setWarning(String warning)
Parameters
warning
Type: String
Return Value
Type: void