|
Project Information
Featured
Downloads
|
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 python 0.1
from me2day import me2API
#api = me2API('_username_', '_userkey_', '_application_key_')
api = me2API('rath')
for f in api.get_friends():
print "%s(%s)" % (f.id, f.nickname)
#api.create_comment({'post_id': 'p2mjxx', 'body': 'just for test'})
for p in api.get_posts({'scope': 'friend[close]', 'count': 20}):
print p.id + ", " + p.author.nickname + ": " + p.body_as_text
for metoo in api.get_metoos({'post_id': p.id}):
person, date = metoo
print date + ", " + person.nickname
for comment in api.get_comments({'post_id': p.id}):
print " %s, %s: %s" % (comment.id, comment.author.nickname, comment.body)
api.noop()me2day api for java 0.6
me2day api for java 0.5
me2day api for java 0.4
|