You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NUGET.md
+48-48Lines changed: 48 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@
7
7
### Example
8
8
9
9
```csharp
10
+
usingGr4vy;
11
+
usingGr4vy.Models.Components;
10
12
usingSystem.Collections.Generic;
11
-
usinggr4vy;
12
-
usinggr4vy.Models.Components;
13
13
14
-
varsdk=newGr4vy(
14
+
varsdk=newGr4vySDK(
15
15
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
16
16
merchantAccountId: "default"
17
17
);
@@ -44,11 +44,11 @@ This SDK supports the following security scheme globally:
44
44
45
45
To authenticate with the API the `BearerAuth` parameter must be set when initializing the SDK client instance. For example:
46
46
```csharp
47
+
usingGr4vy;
48
+
usingGr4vy.Models.Components;
47
49
usingSystem.Collections.Generic;
48
-
usinggr4vy;
49
-
usinggr4vy.Models.Components;
50
50
51
-
varsdk=newGr4vy(
51
+
varsdk=newGr4vySDK(
52
52
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
53
53
merchantAccountId: "default"
54
54
);
@@ -87,10 +87,10 @@ The following global parameter is available.
87
87
### Example
88
88
89
89
```csharp
90
-
usinggr4vy;
91
-
usinggr4vy.Models.Components;
90
+
usingGr4vy;
91
+
usingGr4vy.Models.Components;
92
92
93
-
varsdk=newGr4vy(
93
+
varsdk=newGr4vySDK(
94
94
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
95
95
merchantAccountId: "default"
96
96
);
@@ -110,11 +110,11 @@ return value of `Next` is `null`, then there are no more pages to be fetched.
110
110
111
111
Here's an example of one such pagination call:
112
112
```csharp
113
-
usinggr4vy;
114
-
usinggr4vy.Models.Components;
115
-
usinggr4vy.Models.Requests;
113
+
usingGr4vy;
114
+
usingGr4vy.Models.Components;
115
+
usingGr4vy.Models.Requests;
116
116
117
-
varsdk=newGr4vy(
117
+
varsdk=newGr4vySDK(
118
118
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
119
119
merchantAccountId: "default"
120
120
);
@@ -143,11 +143,11 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
143
143
144
144
To change the default retry strategy for a single API call, simply pass a `RetryConfig` to the call:
145
145
```csharp
146
-
usinggr4vy;
147
-
usinggr4vy.Models.Components;
148
-
usinggr4vy.Models.Requests;
146
+
usingGr4vy;
147
+
usingGr4vy.Models.Components;
148
+
usingGr4vy.Models.Requests;
149
149
150
-
varsdk=newGr4vy(
150
+
varsdk=newGr4vySDK(
151
151
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
152
152
merchantAccountId: "default"
153
153
);
@@ -182,11 +182,11 @@ while(res != null)
182
182
183
183
If you'd like to override the default retry strategy for all operations that support retries, you can use the `RetryConfig` optional parameter when intitializing the SDK:
184
184
```csharp
185
-
usinggr4vy;
186
-
usinggr4vy.Models.Components;
187
-
usinggr4vy.Models.Requests;
185
+
usingGr4vy;
186
+
usingGr4vy.Models.Components;
187
+
usingGr4vy.Models.Requests;
188
188
189
-
varsdk=newGr4vy(
189
+
varsdk=newGr4vySDK(
190
190
retryConfig: newRetryConfig(
191
191
strategy: RetryConfig.RetryStrategy.BACKOFF,
192
192
backoff: newBackoffStrategy(
@@ -223,7 +223,7 @@ while(res != null)
223
223
224
224
Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an exception.
225
225
226
-
By default, an API error will raise a `gr4vy.Models.Errors.APIException` exception, which has the following properties:
226
+
By default, an API error will raise a `Gr4vy.Models.Errors.APIException` exception, which has the following properties:
@@ -382,11 +382,11 @@ If the selected server has variables, you may override its default values throug
382
382
#### Example
383
383
384
384
```csharp
385
+
usingGr4vy;
386
+
usingGr4vy.Models.Components;
385
387
usingSystem.Collections.Generic;
386
-
usinggr4vy;
387
-
usinggr4vy.Models.Components;
388
388
389
-
varsdk=newGr4vy(
389
+
varsdk=newGr4vySDK(
390
390
server: "sandbox",
391
391
id: "<id>",
392
392
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
@@ -411,11 +411,11 @@ var res = await sdk.AccountUpdater.Jobs.CreateAsync(
411
411
412
412
The default server can also be overridden globally by passing a URL to the `serverUrl: string` optional parameter when initializing the SDK client instance. For example:
0 commit comments