api static method
A string representing the action of calling an API object.
It will also automatically store the API response in a parameter. For example, if the API name is "getWeather", you can call the api by using BotAction.api("getWeather"). After that, you can refer to the response by using BotAction.parameter(BotAction.api("getWeather")).
This doesn't create a new API object nor check if the API exists. If the API doesn't exist, this action will be ignored in runtime.
Implementation
static String api(String apiName) => "API_$apiName";