Generates the invitation ID and authorization code for a Circle invitation.
The Circle that the Invite is for, and whether you are adding another of your own devices (isAddDevice = true) or a new member.
InviteInfo, which consists of an Invite ID and an authorization code.
public async Task<GenInviteReply> GenInvite(GenInviteRequest request)
public class GenInviteRequest
{
public string CircleId;
public Boolean IsAddDevice;
}
public class GenInviteReply
{
public ReturnStatus Status;
public InviteInfo Invite;
}
public void GenerateInvite(string circleId, Boolean isJoin)
{
GenInviteRequest request = new GenInviteRequest() {CircleId = circleId, IsAddDevice = isJoin };
GenInviteReply reply = _circle.GenInvite(request);
Console.WriteLine(reply.Invite.ToString());
}