Skip to content

Commit

Permalink
Adds new scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
swiftyspiffy committed Apr 21, 2017
1 parent 5168946 commit 2c26daa
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
25 changes: 23 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<? else: ?>
<input type="text" class="form-control" id="token" style="text-align: center; font-size: 120%;" placeholder="Token will appear here..." disabled>
<? endif; ?>
<span><i>As a security precaution, this tool does NOT store your access token. You will need to generate a new token if you've lost your current one.<i></span>
<span><i>As a security precaution, this tool does NOT store your access token. You will need to generate a new token if you've lost your current one.</i></span>
</div>
</div>

Expand Down Expand Up @@ -150,6 +150,26 @@
<td class="text-center"><code>channel_feed_edit</code></td>
<td class="text-center">Ability to add posts and reactions to a channel feed.</td>
</tbody>
<tbody id="available_tokens">
<td class="text-center"><code><input id="check_collections_edit" type="checkbox"></code></td>
<td class="text-center"><code>collections_edit</code></td>
<td class="text-center">Manage a user's collections (of videos).</td>
</tbody>
<tbody id="available_tokens">
<td class="text-center"><code><input id="check_communities_edit" type="checkbox"></code></td>
<td class="text-center"><code>communities_edit</code></td>
<td class="text-center">Manage a user's communities.</td>
</tbody>
<tbody id="available_tokens">
<td class="text-center"><code><input id="check_communities_moderate" type="checkbox"></code></td>
<td class="text-center"><code>communities_moderate</code></td>
<td class="text-center">Manage communitiy moderators.</td>
</tbody>
<tbody id="available_tokens">
<td class="text-center"><code><input id="check_viewing_activity_read" type="checkbox"></code></td>
<td class="text-center"><code>viewing_activity_read</code></td>
<td class="text-center">Turn on Viewer Heartbeat Service ability to record user data.</td>
</tbody>
</table>
<div class="row">
<div class="col-md-2"></div>
Expand Down Expand Up @@ -180,4 +200,5 @@
var authSuccessful = <? echo (strlen($access_token) > 1 ? "true" : "false"); ?>;
/* --- Runtime PHP Generated JS Vars START -- */
</script>
</html>

</html>
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var client_id = "gp762nuuoqcoxypju8c569th9wz7q5";
var redirect_uri = "https://twitchtokengenerator.com";

var scopes = ["user_read", "user_blocks_edit", "user_blocks_read", "user_follows_edit", "channel_read", "channel_editor", "channel_commercial", "channel_stream", "channel_subscriptions", "user_subscriptions", "channel_check_subscription", "chat_login", "channel_feed_read", "channel_feed_edit"];
var scopes = ["user_read", "user_blocks_edit", "user_blocks_read", "user_follows_edit", "channel_read", "channel_editor", "channel_commercial", "channel_stream", "channel_subscriptions", "user_subscriptions", "channel_check_subscription", "chat_login", "channel_feed_read", "channel_feed_edit", "collections_edit", "communities_edit", "communities_moderate", "viewing_activity_read"];


$( document ).ready(function() {
Expand Down

0 comments on commit 2c26daa

Please sign in to comment.