EventScripter: reconnect and refresh account callAPI
Hi,
I'm trying to automate a small workflow with the EventScripter.
I know this is probably possible using callAPI("accountsV2", "listAccounts", {})or so, but I don't really want to spend hours learning the whole API just for this.
What I'm looking for are two simple scripts:
- Check whether my Rapidgator account is in the "Temporarily disabled" state. If it is, trigger an reconnect.
- After the reconnect (triggert by this) has finished, refresh the Rapidgator account information.
Has anyone already implemented something like this or could provide an example?
Thanks!