LctvApiConstants.inc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * LiveEdu.tv API.
  4. *
  5. * @package LctvApi\Constants
  6. * @since 0.0.8
  7. * @version 0.0.9
  8. */
  9. define( 'CREDENTIALS_FILE' , 'LctvApiCredentials.inc' ) ;
  10. define( 'AUTHORIZE_FILE' , 'authorize.php' ) ;
  11. define( 'CREDENTIALS_INCLUDE' , dirname( __FILE__ ) . '/' . CREDENTIALS_FILE ) ;
  12. define( 'NOT_AUTHORIZED_MSG' , 'This app is not yet authorized with the liveedu.tv API and no ' . CREDENTIALS_FILE . ' was found. This file must exist in order to use this class. You can create this file using ' . CREDENTIALS_FILE . '.example as a reference and then initialize the API by browsing to ' . AUTHORIZE_FILE . '.' ) ;
  13. define( 'CURL_NOT_FOUND_MSG' , 'This library requires that curl be available on this server.' ) ;
  14. define( 'CONSTANT_UNDEFINED_MSG' , 'This app is not yet authorized with the liveedu.tv API. This constant must be defined in ' . CREDENTIALS_FILE . '. Undefined constant: ' ) ;
  15. define( 'MYSQL_UNSUPPORTED_MSG' , 'The version of PHP on this system does not support MySql. This is required to use the LctvApiDataStoreMySQL class.' ) ;
  16. define( 'READ_SCOPE' , 'read' ) ; // Read basic public profile information
  17. define( 'READVIEWER_SCOPE' , 'read:viewer' ) ; // Play live streams and videos for you
  18. define( 'READUSER_SCOPE' , 'read:user' ) ; // Read your personal information
  19. define( 'READCHANNEL_SCOPE', 'read:channel' ) ; // Read private channel information
  20. define( 'CHAT_SCOPE' , 'chat' ) ; // Access chat on your behalf
  21. define( 'LCTV_TOKEN_URL' , 'https://www.liveedu.tv/o/token/' ) ;
  22. define( 'LCTV_AUTH_URL' , 'https://www.liveedu.tv/o/authorize/' ) ;
  23. define( 'LCTV_API_URL' , 'https://www.liveedu.tv:443/api/' ) ;
  24. define( 'STATUS_ENDPOINT' , 'v1/livestreams/' ) ;
  25. define( 'VIEWERS_ENDPOINT' , 'v1/livestreams/' ) ;
  26. define( 'NEXTSTREAM_ENDPOINT' , 'v1/scheduledbroadcast/?limit=500' ) ;
  27. define( 'FOLLOWERS_ENDPOINT' , 'v1/user/followers/' ) ;
  28. define( 'LASTSTREAM_ENDPOINT' , 'v1/user/videos/latest/' ) ;
  29. ?>