A Polymer element for querying results from the Instagram API
Maintained by Addy Osmani.
Using Bower, run:
$ bower install --save x-instagram- Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.3.4/platform.js"></script>- Import Custom Element:
<link rel="import" href="src/x-instagram.html">- Start using it!
<x-instagram></x-instagram>In order to run it locally you'll need a basic server setup.
$ npm install -g grunt-cli- Install local dependencies:
$ npm install- Run a local server and open
http://localhost:8000.
$ grunt connect| Attribute | Options | Default | Description |
|---|---|---|---|
tag |
string | `` | The tag to query for (e.g 'selfie') |
count |
integer | 30 |
The max number of results to return |
photosPerRow |
integer | 10 |
The number of photos that will show up on a row |
clientId |
string | See source | An Instagram API developer client Id |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D