Giter Site home page Giter Site logo

saplo.net's Introduction

Saplo.NET

API wrapper for Saplo

Quickstart

// Connect to the Saplo-API
SaploManager client = new SaploManager("API_KEY", "SECRET_KEY");

// Connect to the Saplo-API using a proxy
IWebProxy proxy = new WebProxy("host:port", true, new string[0], new NetworkCredential("username", "password"));
SaploManager client = new SaploManager("API_KEY", "SECRET_KEY", proxy);

// Create a new collection and store it in the API
Collection myCollection = client.Collections.Create("My Collection Name", "en", "A description of this collection");

// After a collection is successfully created, it is populated with an ID 
int collectionId = myCollection.CollectionID;
	
// Create and save new Text
Text myText = client.Texts.Create(collectionId, "Body of My Text, but more meaningful");

// After a text is successfully created, it is populated with an ID
int textId = myText.TextID;

// Extract Tags from your text.
Tag[] myTags = client.Texts.Tags(collectionId, textId);

// Print out the tags extracted
foreach (var tag in myTags)
{
	Console.WriteLine("Category: \"{0}\"\tTag: \"{1}\"", tag.Category, tag.Name);
}

For the rest of the API methods and examples, refer to http://developer.saplo.com/

For information on implementing the async methods see http://msdn.microsoft.com/en-us/library/awb8dkht.aspx

saplo.net's People

Contributors

mickednk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.