Posting to Google+ Stream - stream

Since Google+'s API only allows for public reading, has anyone figured out how to post to a Google+ stream or do private reading another way?

You cannot programmatically writing to a user's stream or reading private stream data. You can programmatically write app activities to a user's profile.

Related

How to know when a user complete viewing a video with youtube api?

I currently working on a project where I send a youtube video id and show it to the user. And I want to know if there are a method to know when the video is completely viewed by the user. In my application's client, I send a response to the server when the view is completed, and I want to prevent receiving falsed data from untrusted user. And that's why I want to know if youtube api make a things like that. I have seen other similar topics, but I haven't found a safe way to secure communication between client and server for this problem.
Thank you.
From this SO post, it was mentioned that you can use onStateChange event to log that a user viewed a video. But the general idea here is about safety which I think is more important, from there I don't think you can do this as per the privacy of a user. You can understand more about YouTube Reporting and Analytics here.

How to create channel on youtube to upload videos and is it possible to create channel programmatically?

I am using https://github.com/youtube/yt-direct-lite-iOS sample to upload videos.
But the problem is that without having channel we can not upload video on youtube... New User have to setup channel first.. I want this in my app to create channel after user login( if user has no channel in its account).
When user accept the application authentication then i want to hit this url https://www.youtube.com/create_channel.
and let me know if it is possible to create channel programmatically.
Thanks in advance!
EDIT: You might want to use YouTube Data API.
This supports all possible user features for users in YouTube. In your case that it needs creation/uploading, you will use a SSO Method also supported by the YouTube API.
Cheers!
Went into details and did more reading on this. It seems that you cannot create a channel programatically in iOS or Android. Refer to https://support.google.com/youtube/answer/1646861?hl=en
wherein it has been clarified in Google support.
It also shows how to create channels which answers the first part of your question.
This link might help you. It mentions how to create a channel.

Can I use YouTube API to enable YouTube Live Streaming?

I'm developing a YouTube live streaming related program. I know there're APIs to create/list/delete broadcasts and live streams. But all these are assuming that YouTube Live Streaming is already enabled on your account.
I tried to but failed to find any API with which I can use to enable YouTube live streaming on my account. Is there such an API?
As far as I can tell, there is not. As you can see here: https://support.google.com/youtube/answer/2474026?hl=en, in order to create live events on youtube an account must be verified and in good standing.
If you are making the API requests using a YouTube account that fulfills these requirements you can use the YouTube Data API to create liveBroadcasts, otherwise you will likely receive an insufficientPermissions error. This error is detailed here: https://developers.google.com/youtube/v3/live/docs/errors#youtube.liveBroadcasts.insert-insufficientPermissions-liveStreamingNotEnabled-permission.userNotEnabled
One potential way you could tell if an account is able to create live events programmatically would be to call the channels.list() method, and return the status. The status of the channels will have status.longUploadStatus. Long uploads also require an account to be verified and in good standing, so if this value returns allowed you likely have the permissions to work with live events. More details of this can be found in the YouTube Data API documentation.
Let me know if you find information to the contrary.

How do I use YouTube API to upload private videos for a product that will be sold?

So I have a video product that I am about to start selling. Once people pay, they will be able to download the videos, or ideally stream it via YouTube.
But...I don't want them to be able to share the link with every Tom, Dick and Harry.
I know that an unlisted video can still be made public, so that won't work for me. But apparently there can be 'private videos' too.
Where can I learn more about this in the API docs? Or what is the best way to approach this? Especially given that I don't want them to have to have a Google+ account.
Ideally, they should be able to login to my app, and watch the embedded videos there. But they should not be able to share the direct YouTube link.
I know they can always share their account info, that's fine...I will do other things to keep track of and monitor that. It's really the anonymous sharing of the YouTube link I am worried about.
Thanks.
Read the API terms of service and check with your legal folks. Specifically, you will want to make sure that your sale of private content uploaded to YouTube is in compliance with #2 in the Terms of Service:
You agree not to use the YouTube API for any of the following
commercial uses unless You obtain YouTube's prior written approval:
the sale of the YouTube API, API Data, YouTube audiovisual content or
related services, or access to any of the foregoing;

is there an alternate way to get video tags/keywords in youtube api

based on http://youtubecreator.blogspot.com/2012/08/tags-removed-from-video-watch-pages.html, youtube has made media:keywords element empty in youtube api as well.
However, it is important for my application to scan through the tags/keywords. Is there an alternate solution for me to get the tags/keywords for a video?
This blog post gives information relevant to developers: http://apiblog.youtube.com/2012/08/video-tags-just-for-uploaders.html
You can get the tags if you're authenticated as the owner of the video. Otherwise, no, it's not currently possible.

Resources