getStorageItem
Gets from the storage on the specified address an element which is correspond to specified key and ID.
Syntax
getStorageItem = function(aStorageURL, aStorageKey, aCryptoKey, aItemID, aStoragePass);
Parameters
- aStorageURL
- functions: storage address
- aStorageKey
- functions: identification key
- aCryptoKey
- functions: key for encryption / decryption
- aItemID
- functions: ID of the element to be obtained
- aStoragePass
- functions: password to access the storage
Returned value
- functions: obtained element
Notes
- If aItemID = -1, it will get a random element with the specified key
Examples
//Get a random element from the storage var item = getStorageItem('http://mysite.ru/storage.php','requests','mycrypto'); //If the ID of the element is greater than zero, then send it's string to the log. if (item.itemID > 0){ log(item.data); }