iOS Firebase集成分享视频到Youtube

https://developers.google.com/youtube/v3/quickstart/ios

Turn on the YouTube Data API

URL Schemes添加跳转App的白名单,URL Schemes为GoogleService-Info.plist中的REVERSED_CLIENT_ID

  1. Use this wizard to create a new app or select an existing one.
  2. Enter an app name in the App name field, and enter "com.example.QuickstartApp" into the iOS Bundle IDfield.
  3. Click the Continue button to proceed to choose and configure services.
  4. Click the Google Sign-In icon. (It might already be selected.) Then click the Enable Google Sign-in button.
  5. Click the Continue button to proceed to generate configuration files.
  6. Click the Download GoogleService-Info.plist button to download the configuration file. Take note of where you saved it.
  7. Click the Enable the YouTube Data API button.
  8. Use the dropdown menu to select the project that has the same name as the app name that you specified in step 2. Then click the Continue button.
  9. Click the Go to credentials button. This actually takes you to a page to set up credentials, which is not what you need to do, so click the Cancel button. (The wizard has already created credentials for you.)
  10. The credentials page shows API keys and OAuth 2.0 client IDs created for your project. The OAuth 2.0 client IDs section lists two IDs, one for a web application and one for iOS. Click on the link for the iOS client.
  11. Open the GoogleService-Info.plist file that you downloaded in step f. Compare the CLIENT_ID and REVERSED_CLIENT_ID values in the file with the Client ID and iOS URL scheme shown for the iOS OAuth 2.0 client. If they do not match, update the values in the file to those shown for the iOS client.

你可能感兴趣的:(iOS Firebase集成分享视频到Youtube)