aboutsummaryrefslogtreecommitdiff
path: root/bridges/instagram.js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-10-02 13:36:55 -0500
committerMark Powers <mark@marks.kitchen>2021-10-02 13:36:55 -0500
commit7893fec24273571ba0d7f3cf9950b66641bf210c (patch)
treec78df61028d814e2bbb437b90ac393989f0208ec /bridges/instagram.js
parenta1fbc4ac46e1c41d8c4522ae2b7af402ba0515f7 (diff)
Refactor bridges
Diffstat (limited to 'bridges/instagram.js')
-rw-r--r--bridges/instagram.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/bridges/instagram.js b/bridges/instagram.js
new file mode 100644
index 0000000..0ced06a
--- /dev/null
+++ b/bridges/instagram.js
@@ -0,0 +1,10 @@
+async function get_insta() {
+ let url = window.location.href;
+ let insta_url = url + "?__a=1"
+ let res = await fetch(insta_url);
+ let json = await res.json();
+ let uid = json.graphql.user.id
+ let feed_url = `${base_url}/?action=display&bridge=Instagram&context=Username&u=${uid}&media_type=all&format=`;
+ return get_all_types(feed_url)
+}
+