setToken static method
Set Authorization token
Implementation
static void setToken(String token) {
if (!ApiST.instance.initState) {
throw EticonApiError(error: 'Need Api.init() before setToken');
}
GetStorage().write('ApiEticonMainAuthToken2312', token);
Token.instance.setToken(token);
}