@@ -6,7 +6,7 @@ MangopaySDK is a Microsoft .NET client library to work with
6
6
7
7
Installation and package dependencies
8
8
-------------------------------------------------
9
- This SDK is currently targeting ** .NET Standard 2.0** , ** .NET Core 3.1 ** and ** .NET 5.0.** It has ** 4** dependencies on external packages.
9
+ This SDK is currently targeting ** .NET Standard 2.0** and ** .NET 5.0.** It has ** 4** dependencies on external packages.
10
10
These dependencies are:
11
11
- Common.Logging library (version 3.4.1)
12
12
- Newtonsoft.Json (version 13.0.1)
@@ -74,10 +74,10 @@ Sample usage (get, update and save an entity)
74
74
api.Config.ClientPassword = "your-client-api-key";
75
75
76
76
// get some Natural user
77
- UserNaturalDTO user = api.Users.GetNatural(someUserId);
77
+ var user = api.Users.GetNatural(someUserId);
78
78
79
79
// create update entity
80
- UserNaturalPutDTO userPut = new UserNaturalPutDTO
80
+ var userPut = new UserNaturalPutDTO
81
81
{
82
82
Tag = user.Tag,
83
83
Email = user.Email,
@@ -92,14 +92,12 @@ Sample usage (get, update and save an entity)
92
92
};
93
93
94
94
// save updated user
95
- UserNaturalDTO userSaved = api.Users.UpdateNatural(userPut, user.Id);
95
+ var userSaved = api.Users.UpdateNatural(userPut, user.Id);
96
96
97
97
// get his bank accounts
98
- Pagination pagination = new Pagination(2, 10); // get 2nd page, 10 items per page
99
- ListPaginated<BankAccountDTO> accounts = api.Users.GetBankAccounts(user.Id, pagination);
98
+ var accounts = api.Users.GetBankAccounts(user.Id, new Pagination(2, 10));
100
99
101
100
// get all users (with pagination)
102
- Pagination pagination = new Pagination(1, 8); // get 1st page, 8 items per page
103
- ListPaginated<UserDTO> users = api.Users.GetAll(pagination);
101
+ var users = api.Users.GetAll(new Pagination(1, 8));
104
102
105
103
0 commit comments