2011-12-23 4 views

答えて

3

確かに何かを見つける傾けますGDataのネットのAPI:

http://code.google.com/p/google-gdata/

+0

私は私のポストで言ったように、あなたに例を与えたり、私に指示したりすることができますか? Javaのdocだけが例を持っています。 – user516883

+0

上記の「新しい写真を投稿する」リンクを見ましたか?それは確かに私に "例"のように見える;) – paulsm4

+0

申し訳ありません申し訳ありませんが、私はもっと明確にする必要があります、私はピカサにビデオをアップロードしようとし、これは "ビデオの直接メディア投稿は現在サポートされていません" thats私は例が必要どのようにビデオ – user516883

0

うまくいけば、これは、.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(); 
関連する問題