Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
doguhanokumus authored and revall committed May 19, 2020
1 parent 30997ed commit c490f53
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,24 @@ class Instagram {
})
}

async getChainsData({ userId }) {
return this.request('/graphql/query/', {
qs: {
query_hash: '7c16654f22c819fb63d1183034a5162f',
variables: JSON.stringify({
user_id: userId,
include_chaining: true,
include_reel: false,
include_suggested_users: false,
include_logged_out_extras: false,
include_highlight_reels:false
})
}
})
.then(data => data.data.user.edge_chaining)
.then(({ edges }) => edges.map(edge => edge.node));
}

async getActivity() {
return this.request('/accounts/activity/?__a=1').then(
data => data.graphql.user
Expand Down

0 comments on commit c490f53

Please sign in to comment.