A Rest client that posts data to a Leftronic dashboard.
More...
List of all members.
Public Member Functions |
void | sendNumber (string stream, int value) |
void | sendText (string stream, object text) |
void | sendGeoPoint (string stream, double latitude, double longitude) |
void | sendLeaderboard (string stream, object entries) |
void | sendList (string stream, array entries) |
Detailed Description
A Rest client that posts data to a Leftronic dashboard.
- Author:
- Matt Rodriguez
Member Function Documentation
void sendGeoPoint |
( |
string |
stream, |
|
|
double |
latitude, |
|
|
double |
longitude |
|
) |
| |
Send a geographic coordinate which is a lat, long to a stream
- Parameters:
-
stream | |
latitude | |
longitude | |
Send name value pairs to a leftronic stream.
- Parameters:
-
stream | A string of the stream |
entries | A javascript object where each attribute is the name on the leaderboard and the value is the value. |
void sendList |
( |
string |
stream, |
|
|
array |
entries |
|
) |
| |
Send an array of strings to a Stream
- Parameters:
-
stream | A string which is the stream name |
entries | A javascript array of strings. |
Send a number to a stream
- Parameters:
-
void sendText |
( |
string |
stream, |
|
|
object |
text |
|
) |
| |
Send text to a Stream
- Parameters:
-
stream | |
text | is a Javascript object which must contain title and message, and may contain imgUrl. |