Ana Sayfa / Kod ve Scriptler / OAuth Connector for Twitch.tv - PHP

OAuth Connector for Twitch.tv - PHP

Twitch API'sini kullanmaya başlamak istiyorsunuz ama OAuth kimlik doğrulaması zor geliyor mu? O zaman bu ürün tam size göre!

  • Yayın tarihi27 Haziran 2023
  • Nerede çalışırPHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4
  • Son güncelleme27 Haziran 2023
  • Canlı demoVar
OAuth Connector for Twitch.tv - PHP

Overview

// NEWS: OCTOBER 2026: Still works!

Our OAuth Connector takes care of the authentication process, freeing you to focus on coding. We've also included a sample function to demonstrate its use, which can be easily modified to suit your specific needs, accelerating your development process.

The Connector retrieves and refreshes OAuth tokens using your provided client ID and client secret. We've included a guide on how to obtain these from Twitch.

Please note, this OAuth Connector is designed for obtaining 'app access tokens' only. Before proceeding, ensure your planned functionalities only require an 'app access token'. To verify this, check the 'Authorization' section of the function you're implementing on the Twitch API reference page: https://dev.twitch.tv/docs/api/reference/

For instance, the 'Get Videos' function accepts both 'app access token' and 'user access token', which means this function can be implemented using our OAuth Connector: https://dev.twitch.tv/docs/api/reference/#get-videos

The "PHP OAuth Connector for Twitch.tv API" isn't endorsed by Twitch or Amazon and doesn't reflect the views or opinions of Twitch or anyone officially involved in producing or managing Twitch or Amazon.

Features

  • easy to use and provides you a head-start for your development
  • sample function included
  • automatically gets the OAUTH token after first script runtime
  • automatically refreshes the twitch OAUTH token (expires every 60 days)

Requirements

  • PHP knowledge
  • PHP Version: at least version 8.0 - higher is recommended
  • Server needs to have permissions to read and write to the config-File
  • cURL needs to be enabled in the php.ini / allowed on the server