http://me2day.net/ API wrapper for various programming language. It provides API set to create a new post/comment and fetch other useful information.
First release includes Java (1.5 or greater) and ActionScript 3.0. Let's try as the following java code!
Post post = new Post();
post.setBody("Hey, check this pics");
post.setIconIndex(Post.ICON_THINK);
post.setTags("me2photo blah");
VirtualFile file = VirtualFile.create(new File("oops.png"));
file.setProgressListener( new ProgressListener() {
@Override public void transferProgress(ProgressEvent e) {
System.out.println( String.format("%d / %d", e.getTransferredBytes(), e.getTotalBytes()) );
}});
post.setAttachment( file );
Me2API me2 = new Me2API()
me2.setUsername("rath")
me2.setUserKey("00112233")
me2.setApplicationKey("1")
me2.post(post);me2day api for java 0.5
- Me2API.post에서 150자 체크시 Textile link를 길이 체크에서 제외하도록 변경함 (thanks to 꼬룸)
- 파일 첨부 지원 (thanks to 꼬룸)
- Post 클래스에 위도/경도를 지정할 수 있도록 변경됨. (thanks to 꼬룸)
me2day api for java 0.4
- Me2API.KIND_XXX 시리즈 필드가 제거되었음. Me2API.ICON_XXX 시리즈로 교체 필요.
- 2008.07.07일 기준, http://codian.springnote.com/pages/89009 에 명시된 api 모두 구현.
- track_comments 구현. Me2API.getCommentsByMe 와 Me2API.getCommentsToMe
- Me2API.metoo 추가
- Me2API.getMetoos 추가
- Me2API.deleteComment 추가
- 상위 메서드 구현을 위해 TrackComment 와 Metoo 클래스 추가
- me2api application-key 발급을 위해 Me2API.setApplicationKey 의 method-doc 수정.
- 프리미엄 제휴 파트너의 create_post 지원을 위해 Me2API.post 메서드 파라미터에 Map 추가. (icon_url, callback_url, content_type 등 지정 가능)