Skip to content

Commit

Permalink
update api requests and props according instagram endpoint changes (#18
Browse files Browse the repository at this point in the history
)

* update api requests according to endpoint changes and remove username param

* remove username prop

* update README.md

* readd mediaType param and update npm
  • Loading branch information
exiguus authored and kevinongko committed Jun 28, 2018
1 parent 792ac9f commit be0aca4
Show file tree
Hide file tree
Showing 6 changed files with 11,962 additions and 27 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

Instagram's feed fetcher component based on [Vue](https://vuejs.org/).

Fetch instagram feed via [`GET /users/self`](https://www.instagram.com/developer/endpoints/users/)

**Works with Vue 2.***

## Demo
Expand Down Expand Up @@ -58,7 +60,7 @@ Style your feeds using [scoped slot](https://vuejs.org/v2/guide/components.html#

```vue
<template>
 <vue-instagram token="accessTokenHere" username="kevinongko" :count="5" :tags="['hashtag1', 'hashtag2']" mediaType="image">
 <vue-instagram token="accessTokenHere" :count="5" :tags="['hashtag1', 'hashtag2']" mediaType="image">
<template slot="feeds" slot-scope="props">
<li class="fancy-list"> {{ props.feed.link }} </li>
</template>
Expand Down Expand Up @@ -86,7 +88,6 @@ export default {
|Props|Description|Type|Required|
|-----|-----------|----|--------|
|token|Instagram's access token|String|true|
|username|Instagram's username (token's owner)|String|true|
|count|Numbers of feed to fetch|Number|true
|tags|Filter profile's feed by hastag|Array|false
|mediaType|Filter profile's feed by media type: image or video|String|false
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-instagram.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2 class="subtitle">
</section>

<div class="section container">
<vue-instagram :token="token" username="kevin.ongko" :count="5" class="columns is-multiline is-mobile">
<vue-instagram :token="token" :count="5" class="columns is-multiline is-mobile">
<template slot="feeds" slot-scope="props">
<div class="column is-4-desktop is-6-tablet is-6-mobile">
<div class="card">
Expand Down
Loading

0 comments on commit be0aca4

Please sign in to comment.