Skip to content

PandaZoom/twitch-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Helix Twitch Api

Latest Stable Version Total Downloads License

NOTICE: This library uses the latest Twitch HELIX API which ist not fully featured yet

Table of contents

  1. Installation
  2. Usage Example
  3. Configuration
  4. Documentation

Installation

Minimum Requirements: php 7.1

composer require sevenpluss/twitch-api

Or add sevenpluss/twitch-api to your composer.json

"sevenpluss/twitch-api": "^1.0"

Run composer update to pull the latest version.

Usage Example

<?php

namespace YourApp\Http\Controllers;

use Sevenpluss\TwitchApi\Services\TwitchApi;
use Sevenpluss\TwitchApi\Services\ClientSettings;

class VideoController
{
    protected $api;
    
    public function __construct() 
    {
        // make a self extended ClientSettings class with custom settings
        $settings = new ClientSettings('client_id', 'client_secret', 'redirect_url');
        
        $this->api = new TwitchApi($settings);
        
    }
    
    public function index()
    {
        $videos = $this->api->videos()->getVideosByUserId('31239503')->data();
        
        return compact('videos');
    }
}

Configuration

  1. Laravel Configuration

Documentation

Twitch Helix API Documentation: https://dev.twitch.tv/docs/api/reference

The everyone response from Twitch Server encapsulated at Services/Result object.

  1. Analytics
  2. Bits Leaderboard
  3. Clips
  4. Entitlements
  5. Games
  6. Streams
  7. Broadcaster
  8. Tags
  9. Users
  10. Videos
  11. WebHooks
  12. Auth
  13. Paginator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages