본문 바로가기

카테고리 없음

Google Docs API 스터디 메모

728x90
Google Documents List API
http://code.google.com/intl/ko-KR/apis/documents/

Java Library Client
http://code.google.com/intl/ko-KR/apis/gdata/articles/java_client_lib.html

Eclipse Plugin ( X )
http://code.google.com/intl/ko-KR/apis/gdata/articles/eclipse.html
링크는 Plugin이라고 써 있는데 들어가면 아니였음.

gdata-java-client
http://code.google.com/p/gdata-java-client/downloads/list

gdata Dependency
http://code.google.com/p/gdata-java-client/wiki/Dependencies

Dependency - Java Mail 1.4
http://www.oracle.com/technetwork/java/javamail/index.html
gdata를 이용하여 다음 과 같은 API를 사용할 때 Java Mail이 필요하다.
Base Data API, Document List Data API, Maps Data API, Picasa Web Album API and YouTube Data API.
 
Dependency - JavaBeans Activation Framework
http://www.oracle.com/technetwork/java/javase/jaf-136260.html
gdata를 이용하여 다음 과 같은 API를 사용할 때 JAF가 필요하다.
Base Data API, Document List Data API, Maps Data API, Picasa Web Album API and YouTube Data API.

Dependency - Servlet
http://www.oracle.com/technetwork/java/javaee/servlet/index.html
gdata의 샘플을 실행하는데 필요하다. 샘플 말고 그냥 gdata를 쓰려고 한다면 필요 없다.

샘플( DocumentListDemo.java )에서 Package나 Class에 따른 필요한 JAR 파일

com.google.gdata.data.acl

gdata-core-1.0.jar


com.google.gdata.data.docs

gdata-docs-3.0.jar

com.google.gdata.data.MediaContent

gdata-media-1.0.jar

sample.util.SimpleCommandLineParser

sample-util.jar

com.google.common.collect.Maps
google-collect-1.0-rc1.jar

com.google.gdata.data.extensions.QuotaBytesTotal
gdata-client-1.0.jar


● 참고로 샘플( DocumentListDemo.java )을 실행해보려면 위의 jar 파일이 다 필요하다.


Sample Command

create <object_type> <name>               [[create an object]]

trash <resource_id> [delete]              [[puts the object into the trash]]

download <resource_id> <file_path>        [[downloads the object to the folder specified by file_path]]

list [object_type] [...]                  [[lists objects]]

move <resource_id> <folder_id>            [[moves an object into a folder]]

perms <operation> [...]                   [[lists or modifies file permissions]]

remove <resource_id> <folder_resource_id> [[removes an object from a folder]]

search <search_text>                      [[search documents for text strings]]

asearch <search_option>                   [[advanced search]]

upload <file_path> <title>                [[uploads a object]]

revisions <resource_id>                   [[lists revisions of a document]]


help [command]                            [[display this message, or info about the specified command]]

exit                                      [[exit the program]]


반응형