Skip to content

AYLIEN's officially supported .Net (C#) client library for accessing Text API

License

Notifications You must be signed in to change notification settings

shaimaasultan/aylien_textapi_csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is the C# client library for AYLIEN's APIs. If you haven't already done so, you will need to sign up.

Installation

To install, use nuget package manager:

PM> Install-Package Aylien.TextApi

See the Developers Guide for additional documentation.

Example

using Aylien.TextApi;
using System;

namespace ConsoleApplication
{
    class Program
    {
        static void Main(string[] args)
        {
            Client client = new Client("YourApplicationID", "YourApplicationKey");
            Sentiment sentiment = client.Sentiment(text: "John is a very good football player!");
            Language language = client.Language(text: "John is a very good football player!");

            Console.WriteLine("Sentiment: {0} ({1})", 
                sentiment.Polarity, sentiment.PolarityConfidence);
            Console.WriteLine("Language: {0} ({1})",
                language.Lang, language.Confidence);
        }
    }
}

About

AYLIEN's officially supported .Net (C#) client library for accessing Text API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages