我找不到任何从谷歌api页面,这是可能的吗?
当然:你可以用c#或任何其他。net语言上传图像、视频或其他二进制文件:
http://code.google.com/apis/picasaweb/docs/1.0/developers_guide_dotnet.html PostPhotos * ** *
完整的GData .Net API:
http://code.google.com/p/google-gdata/希望这将帮助那些试图使用。net API向picasa上传视频的人。
RequestSettings mySettings = new RequestSettings("PROGRAM NAME");
mySettings.Timeout = 600000;
PicasaRequest pr = new PicasaRequest(mySettings);
PicasaService service = pr.Service;
service.setUserCredentials(username, password);
Uri postUri = new Uri(PicasaQuery.CreatePicasaUri(username, picasaalbumid));
PhotoEntry videoEntry = new PhotoEntry();
videoEntry.Title = new AtomTextConstruct(AtomTextConstructElementType.Title,"Untitled.3gp");//I would change this to read the file type, This is just an example
videoEntry.Summary = new AtomTextConstruct(AtomTextConstructElementType.Summary,"");
MediaFileSource source = new MediaFileSource(stream,fileName,fileType);
videoEntry.MediaSource = source;
PicasaEntry entry = service.Insert(postUri,videoEntry);
stream.Close();