@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='0.5.2') import wslite.rest.* client = new RESTClient("http://localhost/drupal/rest/node.json") response = client.get() response.json.each { println "title:${it.title}" println "url:${it.uri}" println "created:${new Date(Long.parseLong(it.created)*1000)}" }
動作環境
groovy 1.8.4, JDK7 Update1, drupal 7.1.0, services-7.x-3.1, ctools-7.x-1.0-rc1, spyc-0.5
0 件のコメント:
コメントを投稿