1.0.0 • Published 3 years ago

twitch-widget-core v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Twitch-widget-core

Twitch widget to show follower and view count

What's the difference between core and regular?

The regular version gets the data and writes it into the page. The core version does not.

Dependencies

  • jQuery

How to use

  1. Install on website
    1.Install on your website
    <script src="/path/to/twitch-widget-core.js"></script>
  2. Initialize
    tw.auth = "your_auth_key";
    tw.id = "your_client_id";
    tw.user = "your_user_id";
    tw.init();
  3. Access data
    The variables used are:
    • tw.followers
    • tw.views