I followed this link and I successfully created an oauth access to youtube, in my Android APP.
Then I am asking, how do I upload a video on my account?
After accessing my account I have the token, but I saw that I have to do an http request to upload the video. I saw many sites but I still cannot resolve this problem...
How to do it?
Here is probably what you are looking for, particularly slide 30. It comes with nice code examples. But it will only upload into their own account.
Related
I have gone through Google Drive API Documentation and tried Official Google Drive Demos from Github as well. I couldn't find directly download file from Google Drive to Android Local Storage. There are so many threads on StackOverflow and I tried some but no success yet.
Can someone point me to right direction? Tutorial link or even StackOverflow thread which works?
As per my needs Google Drive Android API doesn't provide Download and Upload atleast that's not in documentation https://developers.google.com/drive/android/intro
Documentation shows reading from input stream and writing to it.
So I decided to use Google Drive REST API. which clearly states downloading and uploading methods or endpoints.
Now the issue is Rest documentation not showing how to authenticate on android and use that authentication to make requests to REST API.
I've built an app using Ionic that takes pictures and uploads them to Firebase Storage. What I'd like to do next is to make it so that the directory structure and images are accessible from a Google Team Drive.
What would be a good way to go about this? I don't have any code examples because I'm inexperienced with this and I don't really know where to start.
Would I write code to put in Firebase functions that would upload the images every X hours to a Google Accounts' Team Drive? Since Firebase Storage is just using Google Cloud anyways is there an API I could use? Does Firebase have this capacity already and I just don't know about it?
The Team Drive is under G Suite for my company so I could get a Google account made just for this purpose.
I'm new to Stack Overflow, sorry if this post breaks any rules.
https://github.com/firebase/functions-samples/tree/master/google-sheet-sync
This is the only example on the internet that I could find that addressed this issue.
It is a working (With a few tweaks as of Novemeber 2017) example of OAuth and Google's API for uploading information from the Database to a Google Sheets document via an onWrite() event trigger.
I managed to get this working, and in combination with the Google API docs and a lot of rummaging have sort of managed to get Google Drive connected.
The key points are:
-Follow the Firebase Functions examples
-Examine the google-sheets-sync example
-Firebase Functions takes node.js javascript
Posting this answer because it sounds simple but this was a hell of a lot of digging for me to find this all.
I'm currently trying to create an app to share links, pictures or video to Google Plus. I've seen the documentation on sharing from Google Plus developer here: Sharing to G+ from your app
And realised that the part of the code:
Intent shareIntent = new PlusShare.Builder(this)
where my IDE could not resolve PlusShare as it was deprecated as described here: Plus API deprecation notes.
Could anyone post a way around as I could not find any example codes on how to share to G+ without using the deprecated code.
Thanks!
There is no way to programmatically post to the google+ wall/stream. You can only make a GET request for google data.
I am a newbie in android programming. I build the first app and want to publish on google play (intergrated admod ads). In my app, I use youtube api to play videos from youtube url. I have 2 questions
First: In playlist image, I downloaded image from this link: img.youtube.com/vi/videoId/0.jpg. I didn't know that using this image from this link (downloaded) is illegal or not.
Second: Could I place ads in the same layout with youtube player (its more space in there). I don't know if it violates google policy or not.
I am so scared that my app will be ban. Give me an advice. Thank you so much
I am confused in creating account on google for it? Please anyone tell me whole procedure for uploading video on youtube in easily steps . & then how to get that URl from youtube in my android application?
See this
http://code.google.com/p/ytd-android/
You may use Youtube API do upload video, check here https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds#User_Uploaded_Videos
The sample code for the YouTube Direct Android application that Albin linked to is the canonical example right now.
As soon as v3 of the Data API is released, though, that will be the preferred way of handling uploads from a native Android application, since the Java Google APIs client library will work with both Android and v3 (the current Java GData client library works with v2, but not Android).
(To answer the next question, no, I can't share a release date for v3 of the API.)