Documentation

Returns the master profile and a list of joined devices.

Arguments

The Circle ID

Returns

Whether the action was successful or not, the Member ID, and the list of Devices associated with that Member ID’s account.

API Definition

public async Task<WhoAmIReply> WhoAmI(WhoAmIRequest request)

C# Structures

public class WhoAmIRequest

{

  public string CircleId;

}

public class WhoAmIReply

{

  public ReturnStatus Status;

  public List<ProfileInfo> Profiles;

  public string MemberId;

  public List<DeviceInfo> Devices;

}

C# Example code:

public void WhoAmI()

{

  WhoAmIRequest request = new WhoAmIRequest();

  WhoAmIReply reply = _circle.WhoAmI(request);

  if (reply.Status.Result)

  {

    Console.WriteLine(reply.MemberId);

    foreach (DeviceInfo di in reply.Devices)

    {

      Console.WriteLine($"{di.DeviceId} - {di.DeviceName} - {di.Platform}");

    }

  }

  else

    Console.WriteLine(reply.Status.Message);

}