Skip to content

Commit

Permalink
Merge pull request #564 from EasyPost/fix_param_readme
Browse files Browse the repository at this point in the history
fix: docs about Parameters
  • Loading branch information
Justintime50 committed May 13, 2024
2 parents 7f98558 + a518d54 commit 9c1832e
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 9c1832e

Please sign in to comment.