YouTube API - avoid authentication screen in browser - youtube-api

I have a YouTube class which uploads a video on YouTube using a OAuth authentication.
When I tested it on my local workspace, it worked fine but opened a browser asking if the access to my YouTube channel is permitted.
Now, my class should work on a server. There is no browser which can open and that's the problem.
Everything works up to this point.
Does anybody have an idea how I could redirekt/avoid or do anything else with this browser window?
Thanks a lot for your help!
Best wishes.

If you want to submit a video on behalf of an user, the user has to authenticate and authorize the application somewhere. (if you are using the v3 API)
There are flows which will work with an server-side application, though:
https://developers.google.com/youtube/v3/guides/moving_to_oauth#using-oauth-20-for-server-side-standalone-scripts
https://developers.google.com/youtube/v3/guides/auth/server-side-web-apps#Obtaining_Access_Tokens

thank you for your help!
The solution of my problem was to authenticate the access on my local browser and to copy the stored token to the server.
Best wishes!

Related

Vimeo Pro Video Upload Authentication

We are launching a new video streaming business and believe Vimeo Pro is the product to use. But, before purchasing we need help figuring out how to navigate the video upload authentication process through a Ruby on Rails application.
We are attempting to interact/authenticate on behalf of the user/member.
We are a multi-user site so hard coding a user access token won't work, unless it can be our access token. Can this be done?
The users are not the app owner they are site members.
We will be running a "channel" along with storage, so that the general public can view videos.
We are following the official getting started API document section “Upload API”: https://developer.vimeo.com/api/upload
What we have found is when a user uploads videos through our application, they get redirected to the Vimeo site for authentication. When the user authenticates, they are then redirected to our site with USER’s access token, and can then upload the video.
BUT, we need a solution whereby the system sends OUR permanent authentication token with the upload, so the user doesn’t have to authenticate and it’s just automatic and unseen to them.
Please help us understand the process of uploading video's directly onto Vimeo Pro servers through a Ruby on Rails application with our account’s permanent authenticatiojn token or some solution that is equivalent to this.
Any help would be greatly appreciated!
Thank you!

YouTube API v3, iOS App authentication for company YouTube account

What I want to do in a nutshell:
In our app I want to be able to upload videos to our company YouTube account. Our app has 'host' users and 'guest' users. The host can upload videos for a guest. The video will be unlisted so they're not available publicly and the guest will get a message in the app telling them that a new video is available. We'll then play the video in the app using the YouTube link.
I've downloaded the google-api-objectivec-client source and integrated it in the project. I've studied the YouTube example application that comes along with it. In this example application the user logs into her own account using OAuth 2.0 which is not our use case. The app should have authorization to upload videos to our company account without bothering the user.
I've read a lot of documentation and searched the web to see if someone else has solved this but I was not able to find the right solution.
My Question:
How should our app get authorization to upload videos? Using API keys, using Google+, using a service account? If someone can point me in the right direction, I would really appreciate it!
Unfortunately this is not possible at the moment.

Google Authentication not giving access to YouTube API [images]?

I'm currently working on a YouTube app that will allow users to Log In with their Google Accounts so they can subscribe to other YouTube channels and Like/Dislike videos. However Google doesn't seem to give me access to their YouTube channels even though that option is turned on.
As you can see here the YouTube API is turned on
However when the user is presented to use my App with his account it doesn't ask the user for access to the YouTube channel.
When you look at other applications you can see that they ask for permission for their channel.
Has anyone experienced something similar or does anyone know if I'm doing something wrong :( ?
This looks like a case of your app not passing the proper scope when doing the oAuth authentication. In your code, where your client sets the oAuth scopes, make sure that this is one of the ones you're passing:
https://www.googleapis.com/auth/youtube

How to allow users to upload video from my website to my youtube account?

Is it possible to allow uses to upload video to my youtube account with v3 api? I want allow users to upload video through my website to youtube but not ask them to login to their youtube account. I know it was possible in v2 api. Is it also doable in v3 api?
I've tried so hard to do the same thing as you /w the v3 API. The principal difficulty is to set our credentials in the code. With the v3 API, all the old login methods are "deprecated", to lead place to oAuth V2 login method.
In the API, i've didn't found a parameter where to set credentials. I hope you can find it. Let me know if this is the case.
If you success to create an httpClient object /w your credentials, this is perfect, the code is easy after doing this.
In the case you seach the right code for the v2 version : here
Good luck :)
I'm digging into this question now, too. So far, one workaround is to use the email upload option (found within Youtube's settings once logged in).
There's a limit of 25mb here so it's probably just a temporary proof of concept but powerful enough for smaller vids (mixed with FFMpeg tools wrapped for the language of your choice, I'm using Node.js http://www.benfarrell.com/2012/06/14/morph-your-media-with-node-js/)
Ideally, I want a user to upload a vid, store it in RAM, and then get it pushed to my youtube channel. We'll see what we find...

Using Google + API and LinkedIn API within a desktop application (without prompting user for username-password)

I'm going to create a page which will download user's activity and save it in an .xml file because my iphone app needs to process it. The problem is that I cannot prompt the user for login-password... so I was wondering if there is a sort of permanent key that I can use to access into linkedin and gplus?
Thank you.
Google+
I can field the Google+ part of your question :)
You can access your users' public activity using the REST API's activity list method. To identify who they are you'll need to send them through an OAuth flow during which they will authorize you to know who they are on Google+.
The best way to get started doing server side OAuth flows in Google+ is to grab one of the starter projects and go through the included readme. That will give you a working project to copy code out of, or develop upon.
I'd include a code sample to show you how it works, but I don't know what would best apply to your back end :)
Linkedin
I'm far from an expert on their APIs, but it looks like the flow would be similar using OAuth.

Resources