diff options
author | Mark Powers <mark@marks.kitchen> | 2021-10-02 13:36:55 -0500 |
---|---|---|
committer | Mark Powers <mark@marks.kitchen> | 2021-10-02 13:36:55 -0500 |
commit | 7893fec24273571ba0d7f3cf9950b66641bf210c (patch) | |
tree | c78df61028d814e2bbb437b90ac393989f0208ec /bridges/instagram.js | |
parent | a1fbc4ac46e1c41d8c4522ae2b7af402ba0515f7 (diff) |
Refactor bridges
Diffstat (limited to 'bridges/instagram.js')
-rw-r--r-- | bridges/instagram.js | 10 |
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) +} + |