Skip to content

Commit

Permalink
Various updates
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarGazit committed Aug 1, 2023
1 parent 3ca49f3 commit 9050e1f
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 31 deletions.
6 changes: 6 additions & 0 deletions launcher-csharp/Rooms/Examples/AddingFormToRoom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,15 @@ public static (FormSummaryList forms, RoomSummaryList rooms) GetFormsAndRooms(
string accountId)
{
// Construct your API headers
//ds-snippet-start:Rooms4Step2
var apiClient = new ApiClient(basePath);
apiClient.Configuration.DefaultHeader.Add("Authorization", $"Bearer {accessToken}");
var roomsApi = new RoomsApi(apiClient);
var formLibrariesApi = new FormLibrariesApi(apiClient);
//ds-snippet-end:Rooms4Step2

// Get Forms Libraries
//ds-snippet-start:Rooms4Step3
FormLibrarySummaryList formLibraries = formLibrariesApi.GetFormLibraries(accountId);

// Get Forms
Expand All @@ -42,6 +45,7 @@ public static (FormSummaryList forms, RoomSummaryList rooms) GetFormsAndRooms(
accountId,
formLibraries.FormsLibrarySummaries.First().FormsLibraryId);
}
//ds-snippet-end:Rooms4Step3

// Get Rooms
RoomSummaryList rooms = roomsApi.GetRooms(accountId);
Expand Down Expand Up @@ -72,7 +76,9 @@ public static RoomDocument AddForm(
var roomsApi = new RoomsApi(apiClient);

// Call the Rooms API to get room field data
//ds-snippet-start:Rooms4Step4
return roomsApi.AddFormToRoom(accountId, roomId, new FormForAdd(formId));
//ds-snippet-end:Rooms4Step4
}
}
}
10 changes: 10 additions & 0 deletions launcher-csharp/Rooms/Examples/CreateRoomFromTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ public static RoomTemplatesSummaryList GetTemplates(
string accountId)
{
// Construct your API headers
//ds-snippet-start:Rooms2Step3
var apiClient = new ApiClient(basePath);
apiClient.Configuration.DefaultHeader.Add("Authorization", $"Bearer {accessToken}");
var roomTemplatesApi = new RoomTemplatesApi(apiClient);

// Call the Rooms API to create a room
return roomTemplatesApi.GetRoomTemplates(accountId);
//ds-snippet-end:Rooms2Step3
}

/// <summary>
Expand All @@ -50,21 +52,28 @@ public static Room CreateRoom(
int templateId)
{
// Construct your API headers
//ds-snippet-start:Rooms2Step2
var apiClient = new ApiClient(basePath);
apiClient.Configuration.DefaultHeader.Add("Authorization", $"Bearer {accessToken}");
var roomsApi = new RoomsApi(apiClient);
var rolesApi = new RolesApi(apiClient);
//ds-snippet-end:Rooms2Step2

// Obtain Role
var clientRole = rolesApi.GetRoles(accountId, new RolesApi.GetRolesOptions { filter = "Default Admin" }).Roles.First();

// Construct the request body for your room
//ds-snippet-start:Rooms2Step4
var newRoom = BuildRoom(model, clientRole, templateId);
//ds-snippet-end:Rooms2Step4

// Call the Rooms API to create a room
//ds-snippet-start:Rooms2Step5
return roomsApi.CreateRoom(accountId, newRoom);
//ds-snippet-end:Rooms2Step5
}

//ds-snippet-start:Rooms2Step4
private static RoomForCreate BuildRoom(
RoomModel model,
RoleSummary clientRole,
Expand Down Expand Up @@ -92,6 +101,7 @@ private static RoomForCreate BuildRoom(

return newRoom;
}
//ds-snippet-end:Rooms2Step4

public class RoomModel
{
Expand Down
4 changes: 4 additions & 0 deletions launcher-csharp/Rooms/Examples/ExportDataFromRoom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ public static FieldData Export(
int roomId)
{
// Construct your API headers
//ds-snippet-start:Rooms3Step2
var apiClient = new ApiClient(basePath);

Check warning on line 50 in launcher-csharp/Rooms/Examples/ExportDataFromRoom.cs

View workflow job for this annotation

GitHub Actions / build

'ApiClient' is obsolete: 'ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient instead.'

Check warning on line 50 in launcher-csharp/Rooms/Examples/ExportDataFromRoom.cs

View workflow job for this annotation

GitHub Actions / build

'ApiClient.ApiClient(string, IWebProxy)' is obsolete: 'ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(string, IWebProxy) instead.'
apiClient.Configuration.DefaultHeader.Add("Authorization", $"Bearer {accessToken}");
var roomsApi = new RoomsApi(apiClient);
//ds-snippet-end:Rooms3Step2

// Call the Rooms API to get room field data
//ds-snippet-start:Rooms3Step3
return roomsApi.GetRoomFieldData(accountId, roomId);
//ds-snippet-end:Rooms3Step3
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ public static (OfficeSummaryList offices, FormGroupSummaryList formGroups) GetOf
var formGroupsApi = new FormGroupsApi(apiClient);

// Call the Rooms API to get offices
//ds-snippet-start:Rooms8Step3
var offices = officesApi.GetOffices(accountId);
//ds-snippet-end:Rooms8Step3

// Call the Rooms API to get form groups
//ds-snippet-start:Rooms8Step4
var formGroups = formGroupsApi.GetFormGroups(accountId);
//ds-snippet-end:Rooms8Step4

return (offices, formGroups);
}
Expand All @@ -55,12 +59,16 @@ public static void GrantAccess(
int? officeId)
{
// Construct your API headers
//ds-snippet-start:Rooms8Step2
var apiClient = new ApiClient(basePath);

Check warning on line 63 in launcher-csharp/Rooms/Examples/GrantOfficeAccessToFormGroup.cs

View workflow job for this annotation

GitHub Actions / build

'ApiClient' is obsolete: 'ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient instead.'

Check warning on line 63 in launcher-csharp/Rooms/Examples/GrantOfficeAccessToFormGroup.cs

View workflow job for this annotation

GitHub Actions / build

'ApiClient.ApiClient(string, IWebProxy)' is obsolete: 'ApiClient is now obsolete and will be removed in a future release. Use DocuSignClient(string, IWebProxy) instead.'
apiClient.Configuration.DefaultHeader.Add("Authorization", $"Bearer {accessToken}");
var formGroupsApi = new FormGroupsApi(apiClient);
//ds-snippet-end:Rooms8Step2

// Call the Rooms API to grant office access to a form group
//ds-snippet-start:Rooms8Step5
formGroupsApi.GrantOfficeAccessToFormGroup(accountId, new Guid(formGroupId), officeId);
//ds-snippet-end:Rooms8Step5
}
}
}
10 changes: 5 additions & 5 deletions manifest/ConfigurationManifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"authenticationTypes": [
{
"name": "AuthCodeGrant",
Expand Down Expand Up @@ -206,7 +206,7 @@
"packages": [
{
"name": "DocuSign.eSign.dll",
"version": "6.1.0"
"version": "6.5.0"
}
],
"scopes": [
Expand All @@ -219,7 +219,7 @@
"packages": [
{
"name": "DocuSign.Rooms",
"version": "1.2.0-rc"
"version": "1.4.1"
}
],
"scopes": [
Expand All @@ -240,7 +240,7 @@
"packages": [
{
"name": "DocuSign.Click",
"version": "1.2.2"
"version": "1.3.1"
}
],
"scopes": [
Expand All @@ -254,7 +254,7 @@
"packages": [
{
"name": "DocuSign.Monitor",
"version": "1.1.0"
"version": "1.1.1"
}
],
"scopes": [
Expand Down
10 changes: 5 additions & 5 deletions manifest/ConfigurationManifestJS.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"authenticationTypes": [
{
"name": "AuthCodeGrant",
Expand Down Expand Up @@ -176,7 +176,7 @@
"packages": [
{
"name": "docusign-esign",
"version": "6.0.0"
"version": "6.3.0"
},
{
"name": "fs",
Expand All @@ -198,7 +198,7 @@
"packages": [
{
"name": "docusign-esign",
"version": "^6.0.0"
"version": "^6.3.0"
}
],
"scopes": [
Expand Down Expand Up @@ -232,7 +232,7 @@
"packages": [
{
"name": "docusign-click",
"version": "^2.0.0"
"version": "^2.2.0"
}
],
"scopes": [
Expand All @@ -246,7 +246,7 @@
"packages": [
{
"name": "docusign-monitor",
"version": "^2.0.0"
"version": "^2.1.0"
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions manifest/ConfigurationManifestJava.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
{
"group": "com.docusign",
"name": "docusign-esign-java",
"version": "3.22.0"
"version": "4.3.0"
}
],
"scopes": ["signature"]
Expand All @@ -363,7 +363,7 @@
{
"group": "com.docusign",
"name": "docusign-rooms-java",
"version": "1.1.0"
"version": "1.4.3"
}
],
"scopes": [
Expand All @@ -386,7 +386,7 @@
{
"group": "com.docusign",
"name": "docusign-click-java",
"version": "1.2.2"
"version": "1.5.0"
}
],
"scopes": ["click.manage", "click.send"]
Expand All @@ -398,7 +398,7 @@
{
"group": "com.docusign",
"name": "docusign-monitor-java",
"version": "1.1.0"
"version": "1.3.0"
}
],
"scopes": ["signature", "impersonation"]
Expand Down
12 changes: 6 additions & 6 deletions manifest/ConfigurationManifestPHP.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"authenticationTypes": [
{
"name": "AuthCodeGrant",
Expand Down Expand Up @@ -208,23 +208,23 @@
"packages": [
{
"name": "twig/twig",
"version": "3.5.0"
"version": "3.6.1"
},
{
"name": "league/oauth2-client",
"version": "2.6.1"
"version": "2.7.0"
},
{
"name": "ext-json",
"version": "*"
},
{
"name": "guzzlehttp/guzzle",
"version": "7.5.0"
"version": "7.7.0"
},
{
"name": "firebase/php-jwt",
"version": "6.3.2"
"version": "6.8.0"
},
{
"name": "mashape/unirest-php",
Expand All @@ -251,7 +251,7 @@
"packages": [
{
"name": "docusign/rooms-client",
"version": "2.0.0"
"version": "2.1.0"
}
],
"scopes": [
Expand Down
10 changes: 5 additions & 5 deletions manifest/ConfigurationManifestPython.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"packages": [
{
"name": "Flask",
"version": "2.2.2"
"version": "2.2.5"
},
{
"name": "Flask-OAuthlib",
Expand All @@ -207,7 +207,7 @@
},
{
"name": "requests",
"version": "2.28.2"
"version": "2.31.0"
},
{
"name": "requests-oauthlib",
Expand All @@ -221,7 +221,7 @@
"packages": [
{
"name": "docusign-esign",
"version": "3.19.0"
"version": "3.23.0"
}
],
"scopes": [
Expand All @@ -234,7 +234,7 @@
"packages": [
{
"name": "docusign-rooms",
"version": "1.1.0"
"version": "1.3.0"
}
],
"scopes": [
Expand All @@ -255,7 +255,7 @@
"packages": [
{
"name": "docusign-click",
"version": "1.2.2"
"version": "1.4.0"
}
],
"scopes": [
Expand Down
12 changes: 6 additions & 6 deletions manifest/ConfigurationManifestRuby.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@
"packages": [
{
"name": "rails",
"version": "7.0.4.2"
"version": "7.0.5"
},
{
"name": "sqlite3",
"version": "1.6.0"
"version": "1.6.3"
},
{
"name": "puma",
"version": "6.0.2"
"version": "6.3.0"
},
{
"name": "sass-rails",
Expand Down Expand Up @@ -227,7 +227,7 @@
"packages": [
{
"name": "docusign_esign",
"version": "3.20.0"
"version": "3.24.0"
}
],
"scopes": [
Expand All @@ -240,7 +240,7 @@
"packages": [
{
"name": "docusign_rooms",
"version": "1.1.0"
"version": "1.3.0"
}
],
"scopes": [
Expand All @@ -261,7 +261,7 @@
"packages": [
{
"name": "docusign_click",
"version": "1.2.2"
"version": "1.4.0"
}
],
"scopes": [
Expand Down

0 comments on commit 9050e1f

Please sign in to comment.