Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Make a new RegisteredKey instance.
- $regKey = new RegisteredKey(hidden);
- // Add the vCode to keyID 1156.
- $regKey->vCode = 'hidden';
- // Add the API Mask to keyID 1156.
- $regKey->activeAPIMask = hidden;
- // Activate the API key.
- $regKey->isActive = 1;
- // Save the new API Key into the database.
- if ($regKey->store()) {
- print 'Registered new API Key: ' . $regKey->keyID . ' to the database.' . PHP_EOL;
- } else {
- print "API Key couldn't be added!" . PHP_EOL;
- }
- // Release everything.
- $regKey = NULL;
- unset($regKey);
Advertisement
Add Comment
Please, Sign In to add comment