Skip to content

Commit

Permalink
fix: docs about Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed May 13, 2024
1 parent 7f98558 commit a518d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,13 @@ Shipment myPurchasedShipment = await myClient.Shipment.Buy(myShipment.Id, myShip

### Parameters

Most functions in this library accept a `Dictionary<string, object>` as their sole parameter, which is ultimately used as the body of the HTTP request against EasyPost's API. If you instead would like to use .NET objects to construct API call parameters, you can use the various `Parameters` classes (currently in beta).
Most functions in this library accept a `Dictionary<string, object>` as their sole parameter, which is ultimately used as the body of the HTTP request against EasyPost's API. If you instead would like to use .NET objects to construct API call parameters, you can use the various `Parameters` classes.

For example, to create an address:

```csharp
// Use an object constructor to create the address creation parameters
var addressCreateParameters = new EasyPost.BetaFeatures.Parameters.Addresses.Create {
var addressCreateParameters = new EasyPost.Parameters.Address.Create {
Name = "My Name",
Street1 = "123 Main St",
City = "San Francisco",
Expand Down

0 comments on commit a518d54

Please sign in to comment.