I would like to give the posibility to my website users of entering their email, name, etc. only one time, and make it possible to register with those credentials to Youtube or Flickr direcctly. Is it possible to do it with some of their apis?
Thanks to all!
You cannot register a user to Flickr. Only flickr can do that. In fact, in the API you're not even handling the password. It's all done on flickr's turf.
I guess Youtube is the same (it would make sense since Google also uses Oauth).
Related
I want to allow the visitors of my website to search videos of my youtube account by typing keywords. So far I've been using the "key" parameter to authenticate my other requests and it worked just fine, but for this specific one I am getting a 400 code when setting the myOwnparameter to true.
https://developers.google.com/youtube/v3/docs/search/list#request
If I understand what is said in the documentation by properly authenticated, I'd need to get into the hassle of setting up a OAuth flow just to do that. Beside the inconvenience, this doesn't even seem to address my use case since I don't want the user of my website to be authenticated with his account but with my account : I want the myOwn parameter to point to my account.
How can can I achieve what I am after, with a client-side only solution and - ideally - without OAuth ?
If you want the solution to be client-side only (e.g. a javascript front-end) your authentication credentials should be disclosed to every client and this could be dangerous because anyone could take control of your youtube account.
The solution seems to be to use the channelId parameter and set it to my account.
I have Java based website. I would like users to log into my website and then upload videos to youtube using my youtube account. Users should not be required to have their own youtube account since videos will be uploaded using my youtube account.
Does youtube support this scenario?
If so, is there a sample code that shows me how to do this in Java?
I have used UploadVideo.java sample provided by google (https://developers.google.com/youtube/v3/code_samples/java#upload_a_video), but it requires users to log into youtube account using their id and password. That is not my use case.
Please study the terms and conditions of the Youtube service ; I think they do not allow this:
https://www.youtube.com/static?gl=GB&template=terms
YouTube accounts
4.1 In order to access some features of the Website or other elements of the Service, you will have to create a YouTube account. When
creating your account, you must provide accurate and complete
information. It is important that you must keep your YouTube account
password secure and confidential.
4.2 You must notify YouTube immediately of any breach of security or unauthorised use of your YouTube account that you become aware of.
4.3 You agree that you will be solely responsible (to YouTube, and to others) for all activity that occurs under your YouTube account.
and
5.1.L: you agree not to access Content or any reason other than your personal, non-commercial use solely as intended through and permitted
by the normal functionality of the Service, and solely for Streaming.
"Streaming" means a contemporaneous digital transmission of the
material by YouTube via the Internet to a user operated Internet
enabled device in such a manner that the data is intended for
real-time viewing and not intended to be downloaded (either
permanently or temporarily), copied, stored, or redistributed by the
user.
You can not let other people use your YouTube account/channel. The way to do is using YouTube Direct Lite
You basically add a ytdl with playlist tag while uploading videos.
You can check Android Client for how to do it in Java.
As to whether it is technically possible, yes, see https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol
The technical problem here is users will be able to delete videos too if they have your access token with full permissions. basically you need to:
load your html page with the upload interface.
add to the onclick event of the upload button to send an ajax request to a script on your server which will:
return the access token of your account to the client
soon thereafter change the access token using the refresh token
Its still technically vulnerable though. a possible solution is to obtain the access token ONLY with the scope:
https://www.googleapis.com/auth/youtube.upload
There is a very good chance it will not be vulnerable then. You should test it.
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
I want a few admin users on my site to be able to upload/edit videos straight to my own vimeo account without them having to authenticate each time with my credentials, I couldn't find much on this scenario on Vimeo, has anyone done anything similar?
I've noticed I have an OAuth access token from Vimeo, maybe I can use this somehow?
There is a common misconception here, that authorization has anything to do with the user interacting with your application.
Authorization is simply how you want your app to interact with Vimeo.
If you want to interact on behalf of another user, you need their token. If you want to interact on your own behalf, you only ever need to use your own token.
So in the case you mention above, you simply need to hard code an access token into your app. This way all of your api calls will be made as if it's your own account. Users interacting with your app, such as uploading, will actually be using your account, and uploading videos to your account.
I want to get all the photos or public photos from my Instagram account, without logging in to it.
Is there an API provided by Instagram to make this happen?
Unfortunately, no. The Instagram API requires Authentication to retrieve a certain accounts pictures. Check out the API Console on Instagram's developer website to see which methods require authentication and which of them don't. I know you can retrieve tags, popular pictures, and search users. Good luck!