You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 665B

123456789101112131415161718192021222324252627282930313233
  1. // @flow
  2. /**
  3. * The Google API scopes to request access to for streaming.
  4. *
  5. * @type {Array<string>}
  6. */
  7. export const GOOGLE_API_SCOPES = [
  8. 'https://www.googleapis.com/auth/youtube.readonly'
  9. ];
  10. /**
  11. * An enumeration of the different states the Google API can be in.
  12. *
  13. * @private
  14. * @type {Object}
  15. */
  16. export const GOOGLE_API_STATES = {
  17. /**
  18. * The state in which the Google API still needs to be loaded.
  19. */
  20. NEEDS_LOADING: 0,
  21. /**
  22. * The state in which the Google API is loaded and ready for use.
  23. */
  24. LOADED: 1,
  25. /**
  26. * The state in which a user has been logged in through the Google API.
  27. */
  28. SIGNED_IN: 2
  29. };