Hi,
I'm trying to setup a cron job to automatically dump daily all the licenses and their status using the Web API.
At the moment i have something that looks like this
$allKeys = searchAllKeys();foreach( $allkeys as $k ){ $licenseKey = $k[ 'key' ]; $details = getCdkeyDetails( $licenseKey ); //save stuff}
this however creates a lot of connections, and ultimately will timeout or kill the connection (i setup a very high timeout on my script so i think this is prevented server side, but regardless, it's clearly the wrong approach), so it is clearly not the best way to do this.
I know there is a way to automatically backup everything from the panel (albeit, i have to repeat the backup process for all products) but not an API for that.
Is there a way to pass limelm.pkey.getDetails an array of keys rather than a key at a time? Am I missing something obvious here?
Thank you!