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();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