Skip to content

Commit

Permalink
testing fetching in github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lokxii committed Feb 19, 2024
1 parent c63cba0 commit 2e5b17c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Hello World
</body>
<script src="main.js"></script>
</html>
17 changes: 17 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
async function request() {
const data = {
feed: "at://did:plc:wvh2nzdw4o4fnw5qhaxzereb/app.bsky.feed.generator/aaac6poj633x4"
};
const response = await fetch("https://bsky.social/xrpc/app.bsky.feed.getFeed", {
method: "GET",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data)
});
return response.json();
}

request().then((data) => {
console.log(data)
})

0 comments on commit 2e5b17c

Please sign in to comment.