Youtube API - Send MCN Network Join Invitation? - join

There is access to the CMS Youtube, rights management, with CMS can be sent invitations.
How to do it through the API?
This method should be used if https://developers.google.com/youtube/v3/docs/channelSections/insert?

Currently, it is not possible to send channel invitation through the YouTube API.
You have to manually send out invitations through the YouTube content owner Dashboard.

Related

(Q&A) Can YouTube manager use YouTube API to modify channel content

I am handling well known YouTube channel (and verified YT channel). They sent me invite on my Gmail to be the manager for the channel. My query is 'they made channel manager. So, Do I have rights to use API(with OAuth) to modify the channel content. (I have access the content page and analytics except for revenue section).

How to relate a Youtube Channel and its Google account after deprecation of "googlePlusUserId"?

The "googlePlusUserId" of the YouTube channel object has been deprecated in the last review of the Youtube Data API (June 13, 2016). From the YouTube Data API revision history:
The channel resource's contentDetails.googlePlusUserId property has been deprecated. Previously, the property was only present if the channel was associated with a Google+ profile. Following the deprecation, the property will no longer be included in any channel resources.
I was using this property to relate a YouTube channel with its Google account. By this way I was able to verify in my page that a user signed in with Google is the owner of a YouTube channel. So how to do it now without this property?
Use case
My use case is a web application which invites some YouTube Channels (users) to the website. Ideally this invitation must be with a direct email to the email of the user or a direct message to the YouTube Channel through the YouTube Data API. However, both options are not viable because it is impossible to retrieve the email and actually there is not a functionality to send direct messages to a YouTube Channel through the API. So to invite a YouTube channel we have to manually go to the YouTube Channel about page and send a message to the user with the link to join our page. This link is an URL with a token identifying this invite but we need to be sure that the user coming from this link is the owner of the YouTube channel which has been invited, so the only way is logging in with his YouTube channel account which is the Google account.
I hope I have explained it well, if you have any doubt ask me.
Thank you!
I found a solution. You can make another call to people/me Google+ API endpoint to get the id of currently logged Google user.
Here you can find more information about OAuth scope you have to to grant to the token for access to user's data.

Is it possible to add other users to different slack channels using Slack API as admin?

The channel.join api in the slack web api does not have a slack userid field. The problem is since there are lot of channels in our slack team user gets confused on which channels to join. So we have segregated channels based on internal teams. And if an user selects his team he should be able to auto-join all the channels which are related to him.
As an admin of the slack team is it possible to add other users to different slack channels using Slack API?
You can use the Slack API method channel.invite to invite users to any slack public slack channel. It allows you to specify the channel and user by ID.
See here for the documentation.

How to get the email account that was used to create a specific YouTube channel?

How to get the email account that was used to create a specific YouTube channel?
Is there any PHP class or function that can help me? Or any kind of sample codes?
Thanks.
Edit: I have a YouTube channel and I uploaded some videos to this channel. Now, I need to delete on of this videos. But I for got login details (email address and password) to access this channel. I cannot remember which email address was used to create this channel.
After authenticating a user with OAuth, call and HTTP GET request on the channels/list endpoint with the parameters part=contentDetails and mine=true. If a googlePlusUserId is returned in the contentDetails dictionary, you can then call another request to the Google+ API's people endpoint to get the email address associated with that YouTube account.
Note that YouTube is now forcing all channels to be linked with a Google Account as of the v3 API. There still may be some accounts that do not have a linked Google Account, but that is an minimal edge case according to Google.
If you have completely lost the email to your YouTube account and this is not an API question, you need to look at the YouTube support article for recovering your account and follow the steps here.

YouTube API to upload to Business Channel

Is there any way of using the YouTube API so that users can upload videos directly to my business YouTube channel? Users would grant permission to upload to my channel on the website. I want to avoid uploading to another server, then to YouTube if possible.
Thanks
You can use service account OAuth2 to authorize requests from your app on your behalf to a channel that your account is authorized to access/the owner of.
Create service account credentials: (documentation here)
and make sure the YouTube Data API v3 is enabled on your API
project (getting started guide here, if you're new to the API).
Use your service account OAuth credentials to call the upload API: (documentation here) use the auth in step 1 to upload the video your users share with you and specify your business YouTube channel ID in the video resource. Sample code in various languages here (just search for upload examples after you choose your preferred language).
Things to keep in mind:
If you enable uploads to your channel by end users but don't do any checking/validation there is potential for abuse
service account OAuth is valid for 1 year, so you'd need to refresh the service account credentials every year
It will look like these videos are being uploaded by your business channel and not other user's channels (because that's what's happening via the API).

Resources