Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell authored Dec 19, 2021
1 parent cba0975 commit bed71ae
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@ The OnionFruit™ API provides developers with an easy way to get access to metr
1. Install the NuGet package (see icons above)
2. Create an `ApiClient` for the lifetime of the program
3. Use one of the [extension methods](/src/Extensions), or create your own request/response combo
> The response objects in this project are mapped to `System.Text.Json` serializers. These will be changed to `DataMember` in the future once the .NET team add support

```cs
using System.Threading.Tasks;
using DragonFruit.Data;
using DragonFruit.Data.Serializers.SystemJson;
using DragonFruit.Data.Serializers.Newtonsoft;
using DragonFruit.OnionFruit.Api.Requests;
using DragonFruit.OnionFruit.Api.Extensions;

namespace OnionFruit.Demo;

static readonly ApiClient _client = new ApiClient<ApiSystemTextJson>();
static readonly ApiClient _client = new ApiClient<ApiJsonSerializer>();

public static async Task Main(string[] args)
{
Expand All @@ -47,4 +46,4 @@ public static async Task Main(string[] args)

### License
These (the api and tooling) are open-source components of OnionFruit™. These are licensed under the MIT license.
Refer to the license file for more info.
Refer to the license file for more info.

0 comments on commit bed71ae

Please sign in to comment.