insert these files into the head of the html
<script src="https://apis.google.com/js/api.js"></script>
<script src="https://www.gstatic.com/realtime/realtime-client-utils.js"></script>
<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="http://xenonmolecule.github.io/BASE95/BASE95.js"></script>
<script src="YOUR-JS-FILE"></script>
then, insert this into the body
<div id="BASE95">
</div>
and insert this somewhere you want a button to authorize users
<button id="auth_button">Authorize</button>
Click on this button to initialize a BASE95 workspace
In your JS file type the following: var WORKSPACE-NAME = new b95(CLIENT-ID(from step 1),DOCUMENT-ID(from step 3));
You are now ready to use this powerful api!
.add(name,value[,path])
Parameter | Usage | Type |
---|---|---|
name | the property name you wish to add | string |
value | the value you wish to assign to the property | any |
[path] | the path of objects that the code has to search through to find the location of the value you wish to add, seperated by forward slashes(/), and ending in a forward slash, if left blank, value added without parent objects | string |
.change(name,value[,path])
Parameter | Usage | Type |
---|---|---|
name | the property name you wish to change | string |
value | the value you wish to assign to the property | any |
[path] | the path of objects that the code has to search through to find the location of the value you wish to change, seperated by forward slashes(/), and ending in a forward slash, if left blank, value changed without parent objects | string |
.remove(name[,path])
Parameter | Usage | Type |
---|---|---|
name | the property name you wish to remove | string |
[path] | the path of objects that the code has to search through to find the location of the value you wish to remove, seperated by forward slashes(/), and ending in a forward slash, if left blank, value changed without parent objects | string |
.read([path])
Parameter | Usage | Type |
---|---|---|
[path] | the path of objects that the code has to search through to find the location of the value you wish to read, seperated by forward slashes(/), and ending in a forward slash, if left blank, value changed without parent objects | string |