Read
Read Method
.read() method can return data either with a Promise or via a provided callback.
.read( callback, options )
| parameter | type | description |
|---|---|---|
| callback | function() | Optional callback function where you retrieve your data. If null, a Promise will be returned, which you will need to handle yourself. |
| options | { } | Optional object containing additional parameters and overrides |
First, include prefs.us Javascript library in your project:
Note
All data is returned as Content-Type: text/plain