I have been searching for a way to upload a youtube video with api, I found youtube data v3, created cloud application, added oauth and got the api keys, I also created credentials (client id and client secret for android application) but i am failing to find a sample of java code that uploads a video to youtube, I found a python sample written by google.
I tried searching google docs, i also tried using chatgpt but as always it spits out some garbage code that never works.
I found this old answer but the links seems to be no longer the same