Youtube LiveStreaming API - php

I want to create a website where each user can create/start live streaming.
But as I can see for now I can only create a stream for my own account. The one in which Youtube Data API is enabled. The one which secret keys are written in code. So I have no permissions to create live stream from someones account.
My question is if it is possible to do with Youtube API or not?
UPDATE
I found the way to add broadcast to user's account. But I can't understand how to tell user how to stream to created broadcast. He needs stream_key. (As I know...cause I use OBS software for windows and the only thing I need is stream_key to start streaming.

Never mind. I found out myself. If somebody has same question...
I need to choose Custom Streaming Server in OBS. And in this case I need URL and Stream Key. Which I can get from $streamsResponse['modelData']['cdn']['ingestionInfo']['strea‌​mName'] and $streamsResponse['modelData']['cdn']['ingestionInfo']['inges‌​tionAddress']

This may be a bit more advanced than using OBS, but you could use Wowza's GoCoder livestreaming SDK to build a mobile app. Your subscribers/users can generate a livestream from their mobile phones > to Wowza Media Server > final stream target destination configured for You Tube live.
It works directly with the You Tube Live API.

Related

YouTube Live Streaming API How to set custom thumbnails to Live Broadcast Object

I am creating YouTube live broadcasts using YouTube live streaming API (by using PHP API client library) everything is working fine my question is can we also set thumbnails to that broadcast object using API so that on events page or watch page it shows our custom image right now its shows channel default image? If yes then please let us know how we can achieve that.
I have noted we can change thumbnail through website but i want to change it using PHP API client.
Thanks,
Faraz

Displaying raw image files from Google Drive via API on a website

Why doesn't Google provide publicly accessible link to raw image files, which could be embedded in a website? As I've researched, they did allow it through G Suite a year ago, but not anymore, their reasoning being that there are other providers for this exact thing. As it stands now, it seems that the only possible way to achieve this is to first download the file via Google Drive API via your server and deliver it to the client. But this seems an overkill. What is your suggestion, should I switch to something else, e.g. Amazon S3, or is this solution scalable/economic enough? I picked Google Drive over Amazon S3 because it's free (at least to some extent).

Can I create a new ID Client Oauth without access to console?

I want to create a new Id Client Oauth 2.0 for Google Drive API, then generate the object JSON (oauth credentials), download it and place it in a specific folder, without the use of the console developers google. Is there a script (in php or javascript) that produce this with the email and password of a google account?
I want to create this "standalone script" because I dont want that the client must go before on the google console (although it will be for one-time).
thanks,
Matteo
It is not possible to programmatically create a project on Google developer console. The only way to create a new project is to do it though the website manually.
You are not going to find a script or anything to allow you to do this. The only think that remotely resembles this is the Google Cloud Resource Manager API but its not going to let you create credentials.

How to access Google Play Android Developer API through backend server

I am implemented In App Billing for android.I wanted to implement subscription validity checking through my backend server. As Google Play Documentation, for making call for Google Play API,need authentication using oauth 2.0.
I followed instructions for registering project and creating credentials. But from there I have no idea how to use those credentials, I tried authentication via CURL request, but it asking permission as shown in follwing image
This permissions works fine I can exchange code and get access token, but all this done by manually, how should I implement this on backend.
I even try to use google api php library provided by Google, but It adds confusion. Also they didn't provide any example, how to use library.
Can anybody elaborate how exactly use library or pure php?
Thanks in advance.
To perform LVL and/or IAB validation on a server, do not access Google servers directly from the server. Even if all information were available, you would face integrity problems, because your app and your server will see different information due to synchronization latencies.
Instead, use your app as a proxy and validate the Google Play information on your server as described here.

How to be notified when there is mention and DM in twitter

I'm wondering how Boxcar works, anybody knows? I know how to do the push notification from server to iPhone, but I have no clue of how to create the server to get the #reply and dm from twitter in real time. Any suggestion on what I should look into to create the server? Should I use Twitter's streaming API or User Streams API?
Any sample code, in PHP preferably, will be great :) Thanks!
Currently the only way to get mentions and DMs in realtime for more then a single user is the Site Stream API. You can use the Phirehose library with the OAuth/userstream patch to connect. Unfortunately Site Streams is currently in closed beta and you may not be able to get access for a little while.
Otherwise you pretty much have to poll the REST API frequently to simulate realtime.

Categories