{"id":307,"date":"2010-01-19T17:19:33","date_gmt":"2010-01-19T08:19:33","guid":{"rendered":"https:\/\/deskplate.net\/blog\/2010\/01\/19\/google-gdata-%e3%81%a7%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%81%ab%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%e5%a0%b4%e5%90%88\/"},"modified":"2010-01-19T17:19:33","modified_gmt":"2010-01-19T08:19:33","slug":"google-gdata-%e3%81%a7%e3%83%89%e3%82%ad%e3%83%a5%e3%83%a1%e3%83%b3%e3%83%88%e3%81%ab%e3%82%a2%e3%82%af%e3%82%bb%e3%82%b9%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%e5%a0%b4%e5%90%88","status":"publish","type":"post","link":"https:\/\/deskplate.net\/blog\/archives\/307","title":{"rendered":"Google Gdata \u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5834\u5408"},"content":{"rendered":"<p>DocsService client = new DocsService(&#8220;Gdata Test&#8221;);<br \/>\nclient.setUserCredentials(&#8220;your_id@gmail.com&#8221;,&#8221;your_password&#8221;);<br \/>\nString filepath = &#8220;C:\/sample\/php\/test.txt&#8221;;<br \/>\nString title = &#8220;TitleToUse&#8221;;<br \/>\nFile file = new File(filepath);<br \/>\nDocumentListEntry newDocument = new DocumentListEntry();<br \/>\nString mimeType = DocumentListEntry.MediaType.fromFileName(file.getName()).getMimeType();<br \/>\nnewDocument.setFile(new File(filepath), mimeType);<br \/>\nnewDocument.setTitle(new PlainTextConstruct(title));<br \/>\nclient.insert(new URL(&#8220;http:\/\/docs.google.com\/feeds\/documents\/private\/full\/&#8221;), newDocument);<br \/>\n\u3053\u3046\u3044\u3046\u30b3\u30fc\u30c9\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3046\u5834\u5408<br \/>\ncom.google.gdata.util.ResourceNotFoundException: OK<br \/>\n<HTML><br \/>\n<HEAD><br \/>\n<TITLE>Not Found<\/TITLE><br \/>\n<\/HEAD><br \/>\n<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"><br \/>\n<H1>Not Found<\/H1><br \/>\n<H2>Error 404<\/H2><br \/>\n<\/BODY><br \/>\n<\/HTML><br \/>\n\u30a2\u30af\u30bb\u30b9\u3059\u308bURL\u3092\u5909\u66f4\u3057\u3066\u307f\u308b<br \/>\nhttp:\/\/docs.google.com\/feeds\/default\/private\/full<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DocsService client =<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":0,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"wp:attachment":[{"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskplate.net\/blog\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}