instagram-stories
Advanced tools
Comparing version 1.2.1 to 1.2.2
11
index.js
@@ -78,3 +78,12 @@ const fetch = require('isomorphic-fetch') | ||
.then(res => res.json()) | ||
.then(({native_location_data}) => native_location_data) | ||
.then(({native_location_data: location}) => location) | ||
) | ||
exports.getUserHighlights = ({ | ||
id, | ||
sessionid, | ||
userid, | ||
headers = defaultHeaders | ||
}) => fetch(`https://i.instagram.com/api/v1/highlights/${id}/highlights_tray/`, { | ||
headers: getHeaders(headers, sessionid, userid) | ||
}).then(res => res.json()) |
{ | ||
"name": "instagram-stories", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Unofficial package for scraping instagram stories", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,3 +5,2 @@ # instagram-stories | ||
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
[![Gitter](https://camo.githubusercontent.com/e5749889f0ddb3458befeee4f3fcac67e73ba76d4fc3aa4cbcc91c8085a34369/68747470733a2f2f6261646765732e6769747465722e696d2f6f682d6d792d706f73682f4c6f6262792e737667)](https://gitter.im/instagram-stories) | ||
@@ -23,2 +22,3 @@ Get the Instagram Stories in Node.js | ||
getMediaByCode, | ||
getUserHighlights, | ||
getUserByUsername | ||
@@ -51,2 +51,6 @@ } = require('instagram-stories') | ||
}) | ||
getUserHighlights({id: '25025320', userid: 1284161654, sessionid: '')).then(({ tray }) => { | ||
console.log(tray); | ||
}) | ||
``` | ||
@@ -53,0 +57,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5296
80
58
6