Documentation

Create a new topic in a circle

Arguments

The Circle in which to create the Topic; metadata about the Topic; and whether the Topic is private.

Returns

The ID of the new Topic.

API Definition

public async Task<CreateTopicReply> CreateTopic(CreateTopicRequest request)

 

C# Structures

message CreateTopicRequest {

  string CircleId = 1;

  string TopicName = 2;

  string TopicDescription = 3;

  bool IsPrivate = 4;

}

message CreateTopicReply {

  ReturnStatus Status = 1;

  string TopicId = 2;

}

C# Example code:

public void CreateTopic(string circleId, string topicName, Boolean isPrivate)

{

  CreateTopicRequest request = new CreateTopicRequest()

  {CircleId = circleId, TopicName = topicName, TopicDescription = "", IsPrivate = isPrivate };

  CreateTopicReply reply = _circle.CreateTopic(request);

  Console.WriteLine(reply.Status.Message);

  Console.WriteLine(reply.TopicId);

}