Skip to content
.NET Library for WordsAPI
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
WordSharp.IntegrationTests
WordSharp.Tests
WordSharp
.gitignore
LICENSE.md
README.md
WordSharp.sln

README.md

WordSharp - .NET Library for WordsAPI

WordSharp is a .NET library which allows you to easily use WordsAPI from your .NET applications. It currently allows you to get definitions, synonyms, antonyms, pronunciation, rhyming words, examples, frequency and syllables. You can also get all available information or get random words using the library.

License: MIT License

Installation

This will eventually be turned into a Nuget package. Till that, you should be able to clone the repo and add this to your project.

Usage

var client = new WordClient("YOUR_RAPID_API_KEY_FOR_WORDS_API");

//Make async request
var response = await client.Definitions("syllogism");

//Make a normal request
var response = client.Definitions("syllogism").Result;

//Find whether the request was  a success or failure
bool isSuccess = response.IsSuccessStatusCode;

//Get request status code
HttpStatusCode statusCode = response.StatusCode;

//Get content (This will have all the details for the word)
var content = response.Content;

//Get HttpResponseHeaders (This will have details regarding RateLimitRequestLimit and RateLimitRequestsRemaining among other things)
var responseHeaders = response.ResponseHeaders;
var requestLimit = responseHeaders.RateLimitRequestLimit;
var requestsRemaining = responseHeaders.RateLimitRequestRemaining;
You can’t perform that action at this time.