Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/deebloo/polyinstant
- Owner: deebloo
- Created: 2014-06-28T16:06:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-07T14:43:51.000Z (over 10 years ago)
- Last Synced: 2024-10-31T16:59:38.952Z (2 months ago)
- Size: 685 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.