Heart sign to comments can be give by owner of the channel to any comment, is there a way to do via api like how we can reply to a comment etc.
Related
I want to get a list of the moderators in a YouTube channel, with or without authorization. Is there a way to do it with the YouTube api?
One option is:
Use LiveChatModerators resource for retrieve the lists of moderators for a live chat. The request must be authorized by the owner of the live chat's channel.
See more about how here.
Is there any way I can create an HTML list of subscribers to a channel using the YouTube APIs?
I searched for something on this site:
API - Youtube
There is this term, but I do not know if this is the way:
youtube.activities.list, which returns all the events of a channel.
EDIT
How would I get with my channel subscribers?
You cannot access another Person's subscriber list. Only the channel owner can do that. You can get the subscriber amount though.
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.
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.
With the youtube API, I can find my google+ id from my channel id
https://www.googleapis.com/youtube/v3/channels?id=...&part=contentDetails&key=...
Is there a way to find my list of channels using my g+ id ?
I've looked at this question Google API: Find a Users YouTube Channel and it seems that https://www.googleapis.com/plus/v1/people/...?key=... should return the list it but mine is pretty much empty.
There isn't any way to get a channel from someone else's G+ ID.
You can only get authorized user's channel (even when they sign in with G+), simple by calling channels->list with parameter mine=true.