-
Notifications
You must be signed in to change notification settings - Fork 3
Description
i came across your stack overFlow post which was about youtube uploading authentication I have been facing the same issue which you solved in your post. I tried to apply your solution on my Code but i have some issues, could you please guide me how i can use your class, ExtendedAuthorizationCodeInstalledApp in my project.
I took the following classes from your GitHub post into my project, Auth, SocialMediaRequestJSON, SocialMediaConstants, GoogleRequestJSON, and lastly i tried to update my video upload class to follow your UploadVideoHelper algorithm . But what am not sure that understand correctly is
public Object uploadVideo(SocialMediaRequestJSON socialMediaRequestJSON){
//// your upload vide function
}
who’s filling this socialMediaRequestJSON object and and who’s providing it to uploadVideo function , i mean these and do i already have them
private String userid;
private String credentialDatastore;
private String code;
?
bellow is my project details :
I am designing a Rest service which receive a post upload request from html form , in the request i am attaching the video which i will be uploading as a File,
i was able to upload successfully but i have to authenticate every time i ask for uploading, so i found your solution which i really need to adapt.
My code has Three classes only,
userService class
- Has the UploadVidz function that receive a post request to upload a video , and trigger my video uploading function in UploadVideo Class.
UploadVideo class
- The actual class which was provided by google api i only edited it to accept my video file and all its data
- it has main function that takes my video file and other details about the video like title, .. etc and perform the uploading
- It authenticate the upload using Auth class which was provided by google.
Auth class
-The actual class from google api, with no modification from my side
Kindly guide me on how to adapt your classes to my project.
Uploading testRestUpload-After.zip…