| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
GroupShareKit is a client library targeting .NET Standard 2.0 and .NET Framework 4.6 that provides an easy way to interact with GroupShare Rest API
There are, currently, 2 versions:
Get all users available in Groupshare.
var groupShareClient = await GroupShareClient.AuthenticateClient(userName,
password,
new Uri("http://yourgroupshareaddress"),
GroupShareClient.AllScopes);
var users = await groupShareClient.User.GetAllUsers();
foreach (var user in users)
{
Console.WriteLine(user.DisplayName +" loves Groupshare!");
}GroupShareKit is available on NuGet:
Install-Package GroupShareKit Install-Package GroupShareKit-2017
Please see http://gs2017dev.sdl.com:41234/documentation/api/index#/ for details about the GroupShare Rest API. Please see http://gs2017dev.sdl.com:41235/docs/ui/index#/ for details about the Translation Memory Service.
Due to a problem in the GroupShare (MultiTerm) RestAPI, you may encounter issues with creationDate of termbases being parsed incorrectly. As a workaround, set environment variable multiterm.dateFormatStr according to https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings. (Reference: LTGS-9908 - Multiterm RestAPI returns non-ISO datetime format.)
GroupShareKit is a single assembly designed to be easy to deploy anywhere. If you prefer to compile it yourself, you'll need:
*Visual Studio 2017 *Windows 10 to build and test windows store projects
To clone it locally click the "Clone in Desktop" button above or run the following git commands:
http://gs2017dev.sdl.com:41234/documentation/api/index#/ cd groupsharekit.net .\build.cmd
You can clone this repository locally from GitHub using the "Clone in Desktop" button from the main project site, or run this command in the Git Shell:
git clone git@github.com:sdl/groupsharekit.net.git
If you want to make contributions to the project, forking the project is the easiest way to do this.
After doing that, run the .\build.cmd script at the root of the repository to ensure all the tests pass.
GroupShareKit has integration tests that access the GroupShare Rest API, but they must be configured before they will be executed.
Note: To run the tests, we highly recommend you create a test GroupShare account (i.e., don't use your real GroupShare account) and a test organization owned by that account. The test account needs the same permissions an administrator role has(this is easier to be done by just setting the administrator role to the newly created user). Then set the following environment variables:
GROUPSHAREKIT_USERNAME (set this to the test account's username) GROUPSHAREKIT_PASSWORD (set this to the test account's password) GROUPSHAREKIT_TESTORGANIZATION (set this to the test account's organization PATH) GROUPSHAREKIT_SERVERNAME (set this to your sql server name) GROUPSHAREKIT_BASEURI (set this to the url of your GroupShare instance) GROUPSHAREKIT_BEARERID (optional, set to additional BearerId added to requests. If not provided, default connection is used)
Once these are set, the integration tests will be executed both when running the IntegrationTests MSBuild target, and when running the Sdl.Community.GroupShareKit.Tests.Integration assembly through an xUnit.net-friendly test runner.
Since the GroupShare (MultiTerm) RestAPI has no support for creating termbases, some more manual setup is required to successfully run the TerminologyClient tests: In MultiTerm Desktop, create a termbase:
If you find an issue please visit the issue tracker and report the issue.
Please be kind and search to see if the issue is already logged before creating a new one. If you're pressed for time, log it anyways.
When creating an issue, clearly explain
Also include any other information you think is relevant to reproduce the problem.
Copyright 2020 SDL plc.
Licensed under the MIT License
| Back | FazBrowse Home | New Git URL |