User Tools

Site Tools


tutorial2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorial2 [2019/04/24 13:56]
bangingheads
tutorial2 [2019/04/24 13:58]
bangingheads
Line 7: Line 7:
 */ */
  
-require '​twitch.php';​+require '/​var/​www/​bangingheads.net/​api/​twitch.php';​
 function getRandom($n) {  function getRandom($n) { 
     $characters = '​0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; ​     $characters = '​0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; ​
Line 22: Line 22:
     '​clientId' ​               => '​io6q886ojt4qv4qjx39io6z2dg2g3w', ​    // The client ID assigned when you created your application     '​clientId' ​               => '​io6q886ojt4qv4qjx39io6z2dg2g3w', ​    // The client ID assigned when you created your application
     '​clientSecret' ​           => '​r7ntc98exwtys9rs7qdoqt1eliichr',​ // The client secret assigned when you created your application     '​clientSecret' ​           => '​r7ntc98exwtys9rs7qdoqt1eliichr',​ // The client secret assigned when you created your application
-    '​redirectUri' ​            => '​https://​www.bangingheads.net/​api/index.php', ​ // Your redirect URL you specified when you created your application+    '​redirectUri' ​            => '​https://​www.bangingheads.net/​doku.php?​id=tutorial2', ​ // Your redirect URL you specified when you created your application
     '​scopes' ​                 => [''​] ​ // The scopes you would like to request     '​scopes' ​                 => [''​] ​ // The scopes you would like to request
 ]); ]);
tutorial2.txt · Last modified: 2019/04/24 13:58 by bangingheads