Skip to content

Instantly share code, notes, and snippets.

@LusciousPear
Created November 20, 2015 05:50
Show Gist options
  • Save LusciousPear/e30bedb0224f11edafc0 to your computer and use it in GitHub Desktop.
Save LusciousPear/e30bedb0224f11edafc0 to your computer and use it in GitHub Desktop.
<template is="dom-bind">
<iron-localstorage name="userToken" value="{{localtoken}}" use-raw></iron-localstorage>
<iron-ajax url="api/twitter/v1/private/gettweets" last-response="{{data}}" auto
headers='{"Authorization": "Bearer [[localtoken]]"}'
handle-as="json"></iron-ajax>
<iron-list items="[[data.futuretweets]]" as="item">
<template>
<div>
datetime: <span>[[item.datetime]]</span>
text: <span>[[item.text]]</span>
</div>
</template>
</iron-list>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment