Skip to content

Commit

Permalink
Update samples based on interface factory
Browse files Browse the repository at this point in the history
  • Loading branch information
babelshift authored Oct 18, 2019
1 parent eb4dd3c commit 5ae81a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ Each method returns a SteamWebResponse object which contains the following:
## Sample Usage

```cs
// factory to be used to generate various web interfaces
var webInterfaceFactory = new SteamWebInterfaceFactory(<dev api key here>);

// this will map to the ISteamUser endpoint
var steamInterface = new SteamUser("<devKeyHere>");
// note that you have full control over HttpClient lifecycle here
var steamInterface = webInterfaceFactory.CreateSteamWebInterface<SteamUser>(new HttpClient());

// this will map to ISteamUser/GetPlayerSummaries method in the Steam Web API
// see PlayerSummaryResultContainer.cs for response documentation
Expand Down

0 comments on commit 5ae81a8

Please sign in to comment.