From dde49dcaa67506f2ed2678c8d3739b7c97c18cbf Mon Sep 17 00:00:00 2001 From: Barry Carlyon Date: Tue, 8 Aug 2023 13:14:58 +0100 Subject: [PATCH] Mystery examples --- examples/sponsor_finder/index.html | 82 ++++++++++++++++++++++++++++++ examples/tag_counter/index.html | 6 +-- 2 files changed, 85 insertions(+), 3 deletions(-) create mode 100644 examples/sponsor_finder/index.html diff --git a/examples/sponsor_finder/index.html b/examples/sponsor_finder/index.html new file mode 100644 index 0000000..900e406 --- /dev/null +++ b/examples/sponsor_finder/index.html @@ -0,0 +1,82 @@ + + + Sponsor Finder| Twitch API Example + + + +

This example first uses Implicit Auth to get a token to use then will return a page similar to The Directorty. Generally calls will be done/cached server side with an App Access Token

+ +

Get the code for this example on Github or just View the source instead

+ + Authorize +
+ +
+ + + + diff --git a/examples/tag_counter/index.html b/examples/tag_counter/index.html index 05803a0..3b34f1a 100644 --- a/examples/tag_counter/index.html +++ b/examples/tag_counter/index.html @@ -31,7 +31,7 @@

This example first uses Implicit Auth to get a token to use then will return a page similar to The Directorty. Generally calls will be done/cached server side with an App Access Token

-

Get the code for this example on Github or just View the source instead

+

Get the code for this example on Github or just View the source instead

Authorize
@@ -79,7 +79,7 @@

All Tags

.then(resp => resp.json()) .then(resp => { total_streams += resp.data.length; - + resp.data.forEach(stream => { let { tags, viewer_count } = stream; page_record_viewer = viewer_count; @@ -114,7 +114,7 @@

All Tags

}); document.getElementById('loading').textContent = `Loading Streams Page: ${page_counter} StreamCount: ${total_streams} ViewR0: ${page_record_viewer}`; - + if (resp.pagination && resp.pagination.cursor) { getPage(resp.pagination.cursor);