Web component to show a card of your profile in Instagram using Polymer
HTML JavaScript
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 15 commits ahead of kessiler:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
.gitignore
GruntFile.js
README.md
bower.json
card-example.png
index.html
package.json

README.md

<instagram-user-card>

Web component to show a card of your profile in Instagram using Polymer. This project is designed to work with Polymer 1.0.

This is a fork of the project originally created by Kessiler Rodrigues.

Demo

Example

@NOTE : Data can not be displayed, because Instagram has a limit of 5000 requests per hour.

Install

Install the component using Bower:

$ bower install instagram-user-card --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill:

    <script src="bower_components/webcomponentsjs/webcomponents-lit.min.js"></script>
  2. Import Instagram custom element:

    <link rel="import" href="bower_components/instagram-user-card/dist/instagram-user-card.html">
  3. Start using it!

    <instagram-user-card access-token="[access token]" client-id="[client id]"></instagram-user-card>

Options

Attribute Options Description
clientId string your id from instagram.
accessToken string key token of your user.

@NOTE: If you do not know your clientId, you can search it here.

@NOTE: If you need an access token, you can generate one here.

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

  • Install Bower & Grunt:

    $ [sudo] npm install -g bower grunt-cli
  • Install local dependencies:

    $ bower install && npm install
  • To test your project, start the development server and open http://localhost:8000.

    $ grunt server

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

MIT License