Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deebloo/polyinstant

Connection and data manipulation components for goinstant
https://github.com/deebloo/polyinstant

Last synced: 15 days ago
JSON representation

Connection and data manipulation components for goinstant

Awesome Lists containing this project

README

        

Polyinstant
==========

NOTE: GO INSTANT WILL BE SHUTTING DOWN AT THE END OF AUGUST 2014!

Polymer elements for connecting and manipulating data from goinstant.
Give your account number and app name. If no room is given the 'lobby' will be joined.

Give the desired key and query parameters. If not query parameters are given all data from the specified key will be retrieved.

```HTML

```

```JS
var data = document.querySelector('go-data');

data.addEventListener('gotData', function(res) {
console.log(res.detail.data);
});
```

To trigger a new query simply change the query value. (and likewise for key)
The change will trigger the same 'gotData' event. The query parameter MUST be a string and is parsed before being sent to goinstant.
```JS
data.query = "{'author': 'Robert Kirkman'}"
```
NOTE: look at the goinstant documentation on [filtering](https://developers.goinstant.com/v1/javascript_api/query/filtering.html) to see more details on how to structure your query.