/set/?auth=<key>&domain=<domain>&name=<name>&value=<value>
Save string value "domain.name = value"
/get/?auth=<key>&domain=<domain>&name=<name>
Get string value "domain.name"
<domain> and <name> should not be longer than 32 characters
Requires any version of JQuery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="http://storage.noopol.com/jquery.noopolStorage.js"></script>
First you need to auth key, and optionally domain
noopolStorage.key = "auth-key";
noopolStorage.domain = "domain.com";
Defaults to window.location.hostname
Then you can start using API
noopolStorage.getText("<name>", ["<domain>"]);
noopolStorage.getJSON("<name>", ["<domain>"]);
returns Promise, <domain> is optional
noopolStorage.setText("<name>", "<value>", ["<domain>"]);
noopolStorage.setJSON("<name>", "<value>", ["<domain>"]);
returns Promise, <domain> is optional
noopolStorage.setText("my-name", "iggi")
.done(function(){ console.log("success"); })
.fail(function(e){ console.log(e.responseText); })
.always(function(){})
;
noopolStorage.getText("my-name")
.done(function(data){ console.log(data); })
.fail(function(e){ console.log(e.responseText); })
.always(function(){})
;