static void Main(string[] args) { _magnetAPIClient = new MagnetAPIClient(ENDPOINT, CALK, SECRET_KEY); string articleUID = "wiki/United_States"; AddArticle(articleUID); UpdateArticle(articleUID); DeleteArticle(articleUID); GetArticle(articleUID); ShowIndex(); }
static void GetKeyTopics() { MagnetAPIClient client = new MagnetAPIClient(ENDPOINT, CALK, SECRET_KEY); string json = client.CallWebMethod("GetKeyTopics", new MagnetAPIClient.Params { { "text", "The United States of America (USA), commonly known as the United States (U.S.) or America, is a federal republic composed of 50 states, a federal district, five major self-governing territories, and various possessions." }, { "lang", "en" }, { "format", "json" } }, "POST"); Console.WriteLine(json); }