그루비로 트위터 데이터을 긁어오는 소스
Twitter4J 라이브러리를 사용했음.

import twitter4j.*

def twitter = new Twitter( 'id', 'passwd')
List<Status> statuses = twitter.getFriendsTimeline()

for(Status status : statuses) {
    println "@${status.user.screenName}(${status.user.statusesCount})\t$status.text"
}

참고



CouchDB
  • MapReduce 스타일
  • 스키마 안씀
  • 문서 단위 저장
  • CVS/SVN과 유사하게 Revision 사용
Groovy+CouchDB
  • RestClient를 사용하면 쉽게 CouchDB와 연동가능함
    • new RESTClient('http://...').put( path:'...',

설치


'Web' 카테고리의 다른 글

me2API 메소드 리스트  (0) 2010.02.09
me2API 오류 코드  (0) 2010.02.08
[링크] HTML5의 모든것  (0) 2010.02.03
[링크] 웹 개발자 리소스  (0) 2010.02.03
Google I/O 2009 키노트 :: HTML5  (0) 2010.02.02
Apache CouchDB e-Book  (0) 2010.01.22
RESTful  (0) 2010.01.22

-Pname=value 형식으로 전달함.

ex) gradle test -Pname=value

스크립트에서는 project.getProperties()로 파라메터 맵을 받아서 처리한다.

task hello << {
def props = project.getProperties()

    println "Hello world, $props.id !"
}


Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web. The term Representational State Transfer (REST) was introduced and defined in 2000 by Roy Fielding[1][2] in his doctoral dissertation. Fielding is one of the principal authors of the Hypertext Transfer Protocol (HTTP) specification versions 1.0 and 1.1.

Conforming to the REST constraints is often referred to as being ‘RESTful’.

'Web' 카테고리의 다른 글

me2API 메소드 리스트  (0) 2010.02.09
me2API 오류 코드  (0) 2010.02.08
[링크] HTML5의 모든것  (0) 2010.02.03
[링크] 웹 개발자 리소스  (0) 2010.02.03
Google I/O 2009 키노트 :: HTML5  (0) 2010.02.02
Apache CouchDB e-Book  (0) 2010.01.22
Apache CouchDB  (0) 2010.01.22

+ Recent posts