예제 #1
0
import snaide

groups = snaide.get_all_groups()

maximum = 0

for group in groups:
	count = 0
	members = snaide.get_group_members(None, group)
	for member in members:
		count = count + len(snaide.get_blogs_by_user(None, member))

	if count > maximum:
		maximum = count
		ret_group = group

print maximum, snaide.get_group_name(ret_group)
print snaide.get_all_events()
print


print snaide.get_events_owned_by(None, user_guid)
print


print snaide.get_statuses_by(None, user_guid)
print


print snaide.get_comments_by(None, user_guid)
print

print snaide.get_group_members(None, group_guid)
print


print snaide.get_groups_owned_by(None, user_guid)
print


print snaide.get_all_pages()
print


print snaide.get_all_events()
print

print snaide.get_events_created_by(None, user_guid)
import snaide

groups = snaide.get_all_groups()

maxie = 0

for group in groups:
	count = 0
	members = snaide.get_group_members(None, group["guid"])
	for member in members:
		count = count + len(snaide.get_blogs_by_user(None, member["guid"]))

	if count > maxie:
		maxie = count
		ret_group = group

print maxie, snaide.get_group_name(ret_group["guid"])