Skip to content

Web component to show a card of your profile in Instagram using Polymer

Notifications You must be signed in to change notification settings

willsteinmetz/instagram-user-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<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

About

Web component to show a card of your profile in Instagram using Polymer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 92.2%
  • JavaScript 7.8%