Skip to content

Commit 182724e

Browse files
author
Raileen Del Rosario
committed
adding codeDepot tags
1 parent f32ecb5 commit 182724e

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

launcher-csharp/ConnectedFields/Controllers/Eg001SetConnectedFieldsController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public override IActionResult Get()
3838
string accessToken = this.RequestItemsService.User.AccessToken;
3939
string accountId = this.RequestItemsService.Session.AccountId;
4040
var basePath = this.RequestItemsService.Session.IamBasePath;
41-
4241
var connectedFields = SetConnectedFields.GetConnectedFieldsTabGroupsAsync(
4342
basePath,
4443
accountId,

launcher-csharp/ConnectedFields/Examples/SetConnectedFields.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ public static class SetConnectedFields
1818
{
1919
public static async Task<List<TabInfo>> GetConnectedFieldsTabGroupsAsync(string basePath, string accountId, string accessToken)
2020
{
21+
//ds-snippet-start:ConnectedFields1Step3
2122
var client = CreateAuthenticatedClient(basePath, accessToken);
2223
return await client.ConnectedFields.TabInfo.GetConnectedFieldsTabGroupsAsync(accountId);
24+
//ds-snippet-end:ConnectedFields1Step3
2325
}
2426

27+
//ds-snippet-start:ConnectedFields1Step4
2528
public static List<TabInfo> FilterData(List<TabInfo> connectedFields)
2629
{
2730
return connectedFields
@@ -31,6 +34,8 @@ public static List<TabInfo> FilterData(List<TabInfo> connectedFields)
3134
.ToList();
3235
}
3336

37+
//ds-snippet-end:ConnectedFields1Step4
38+
3439
public static string SendEnvelopeViaEmail(
3540
string basePath,
3641
string accessToken,
@@ -163,7 +168,9 @@ public static EnvelopeDefinition MakeEnvelope(
163168

164169
//ds-snippet-end:ConnectedFields1Step5
165170

171+
//ds-snippet-start:ConnectedFields1Step2
166172
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken) =>
167173
IamClient.Builder().WithServerUrl(basePath).WithAccessToken(accessToken).Build();
174+
//ds-snippet-end:ConnectedFields1Step2
168175
}
169176
}

launcher-csharp/Navigator/Examples/NavigatorMethods.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,42 @@ public static class NavigatorMethods
1414
/// Lists all agreements for the specified account using the IAM client.
1515
/// </summary>
1616
/// <returns>AgreementsResponse</returns>
17+
//ds-snippet-start:Navigator1Step3
1718
public static async Task<AgreementsResponse> ListAgreementsWithIamClient(
1819
string basePath, string accessToken, string accountId)
1920
{
2021
var client = CreateAuthenticatedClient(basePath, accessToken);
2122
return await client.Navigator.Agreements.GetAgreementsListAsync(accountId);
2223
}
2324

25+
//ds-snippet-end:Navigator1Step3
26+
2427
/// <summary>
2528
/// Retrieves a specific agreement by its ID using the IAM client.
2629
/// </summary>
2730
/// <returns>Agreement</returns>
31+
//ds-snippet-start:Navigator2Step3
2832
public static async Task<Agreement> GetAgreementWithIamClient(
2933
string basePath, string accessToken, string accountId, string agreementId)
3034
{
3135
var client = CreateAuthenticatedClient(basePath, accessToken);
3236
return await client.Navigator.Agreements.GetAgreementAsync(accountId, agreementId);
3337
}
3438

39+
//ds-snippet-end:Navigator2Step3
40+
3541
/// <summary>
3642
/// Creates an authenticated IAM client.
3743
/// </summary>
44+
//ds-snippet-start:NavigatorCsharpStep2
3845
private static IamClient CreateAuthenticatedClient(string basePath, string accessToken)
3946
{
4047
return IamClient.Builder()
4148
.WithServerUrl(basePath)
4249
.WithAccessToken(accessToken)
4350
.Build();
4451
}
52+
53+
//ds-snippet-end:NavigatorCsharpStep2
4554
}
4655
}

0 commit comments

Comments
 (0)