What is springnote-api?
Springnote-api is API set for the springnote service (http://www.springnote.com). This service also provides OpenAPI but this project serve a easy way to handling springnote api.
Springnote-api 는 스프링노트 서비스(http://www.springnote.com)의 API를 여러가지 프로그래밍 언어에서 쉽게 사용할 수 있도록 포장해놓은 API 들입니다. 스프링노트에서 제공하는 HTTP 기반의 API가 이미 존재하지만 조금 더 쉽게 사용하고자 하는 개발자들을 위한 API 세트입니다.
- Java (1.5 or greater)
- PHP
- ActionScript 3.0 (avm2)
Release Note
- 2008-10-20, 댓글을 가져오는 API가 추가되었습니다. getComments
NOTE
2007년 9월 17일부터 http를 통한 call을 사용할 수 없습니다. 새로운 springnote-api for java 0.7을 다운로드 받아 교체하시기 바랍니다.
HOW-TO
Create a SpringNote instance
SpringNote note = new SpringNote();
note.setOpenID(new URL("your openid here"));
note.setUsername("your note-name here");
note.setUserKey("your UserKey that delived from API center (https://api.openmaru.com)");
note.setApplicationKey("your ApplicationKey that delived from API center (https://api.openmaru.com)");Get comments from the page
SpringNote note = new SpringNote();
...
List<Comment> comments = note.getComments(123456);
for(Comment cmt : comments) {
System.out.printf("%s, %s: %s%n", cmt.getCreationDate(), cmt.getCreator(), cmt.getDescription() );
}