Skip to content

Instantly share code, notes, and snippets.

@mohemohe
Last active August 29, 2015 13:55
Show Gist options
  • Save mohemohe/8784196 to your computer and use it in GitHub Desktop.
Save mohemohe/8784196 to your computer and use it in GitHub Desktop.
Example of how to use covconv API in C#.NET .
using System;
namespace example_covlangAPI
{
internal class Program
{
private static void Main(string[] args)
{
string uri = "http://api.ghippos.net/covlang/";
var wc = new System.Net.WebClient();
var nvc = new System.Collections.Specialized.NameValueCollection();
nvc.Add("ja_JP", "ここに原文を入力すると、こふ語になります。");
byte[] resData = wc.UploadValues(uri, nvc);
string resText = System.Text.Encoding.UTF8.GetString(resData);
Console.WriteLine(resText);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment