Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

FrostSharp

NuGet version

.NET Core library wrapping po.et's Frost API.

Updated for Frost API v0.1

Usage

Install:

dotnet add package FrostSharp

or

Install-Package FrostSharp

Examples:

// Your api keystringAPIKey="your api key here";// Create a Frost configuration with all default values (should work for most people)varConfig=newConfiguration();// do we want all HTTP request logging to stdout (mostly useful for testing)boollogging=false;// Create the client we will use.varclient=newFrost(APIKey,Config,logging);// Create a work (Work name, date created, date published, author name, work content)WorkAttributesmyWork=newWorkAttribute("Work Name",DateTime.UtcNow,DateTime.UtcNow,"Alec Chan","This is the content of the work");// Post the work onto the po.et network (runs asynchronously)stringmyWorkId=awaitclient.CreateWork(myWork);// Look up a work by work IDWorkAttributesthisIsTheSameWorkWeJustPosted=awaitclient.GetWork(myWorkId);// Get all the works that your API key has postedList<WorkAttributes>listOfWorks=awaitclient.GetAllWorks();

Development

Building library: cd FrostSharp && dotnet build

Running tests: cd FrostSharp.Tests && dotnet test

To contribute:

  • Clone this repo
  • Create an integration branch (e.g. -integration)
  • Make changes
  • Submit a pull request to pull changes into master

About

Unofficial C# wrapper for @poetapp's Frost API.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages