Documentation

Enumerates all the members in a circle.

Arguments

The Circle ID that you want the list of members from.

Returns

Whether the action was successful, and the list of members in the Circle.

 

API Definition

public async Task<EnumCircleMembersReply> EnumCircleMembers(EnumCircleMembersRequest request)

C# Structures

public class EnumCircleMembersRequest

{

  public string CircleId;

}

public class EnumCircleMembersReply

{

  public ReturnStatus Status;

  public List<ProfileInfo> Profiles;

}

 

C# Example code:

public void EnumCircleMembers(string circleId)

{

   EnumCircleMembersRequest request = new EnumCircleMembersRequest() { CircleId = circleId };

   EnumCircleMembersReply reply = _circle.EnumCircleMembers(request);

  if (reply.Status.Result)

  {

    foreach (ProfileInfo pi in reply.Profiles)

       {

      Console.WriteLine($"{pi.ProfileId} - {pi.UserName} - {pi.DisplayName}");

    }

   }

  else

    Console.WriteLine(reply.Status.Message);

}