print


print snaide.get_all_groups_count()
print


print snaide.get_all_status_likes_count()
print


print snaide.get_all_friends(None, user_guid)
print


print snaide.get_all_friends_count(None, user_guid)
print


print snaide.get_comments_by(None, user_guid)
print


print snaide.get_group_owner(None, group_guid)
print


print snaide.is_friend(user1_id, user2_id)
print

예제 #2
0
import snaide

friends_count = snaide.get_all_friends_count(None, 48158)

friends = snaide.get_all_friends(None, 48158)

pages_sum = 0
comments_sum = 0
statuses_count = 0
status_likes_count = 0
blogs_count = 0
blog_likes_count = 0
groups_count = 0
groups = set([])

for friend in friends:
	pages_sum = pages_sum + len(snaide.get_pages_liked_by(None, friend))
	comments_sum = comments_sum + len(snaide.get_comments_by(None, friend))
	statuses = snaide.get_statuses_by(None, friend)
	statuses_count = statuses_count + len(statuses)
	for status_id in statuses:
		status_likes_count = status_likes_count + snaide.get_likes_on_single_status(status_id)

	blogs = snaide.get_blogs_by_user(None, friend)
	blogs_count = blogs_count + len(blogs)
	for blog_id in blogs:
		blog_likes_count = blog_likes_count + snaide.get_blog_likers_count(None, blog_id)

	for g in snaide.groups_with_user_as_member(None, friend):
		groups.add ( g )