GroupShareKit for GS 2017 example not working

https://github.com/sdl/groupsharekit.net lists following usage example:

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!");
}

However, there is neither a method "GroupShareClient.AuthenticateClient" nor a method "GetAllUsers" with the respective parameters in the GroupShareKit.
Am I missing something?
Parents Reply
  • Thank you for taking a look and thank you for the sample link - I will absolutely take a closer look at that!

     

    The tests you linked however rather confirm my suspicion that the example from the github main page is not quite in line with how the toolkit is used:

    - If I checked right, the tests do not test a method "GetAllUsers()" (as in github example) - but rather a method "GetAllUsers(UserRequest)" (which I can also see and use in the toolkit).

    - The Helper class from the tests does not call a method AuthenticateClient with a signature as in the example I copy pasted (because this does not exist?) - but rather gets a token (string) and passes that into AuthenticateClient as an additional argument. Same seems to be true for the sample application (UserMangerKit.GetGroupShareClient(Account)).

     

    So I don't think there is anything missing for me actually :) that short example on github just is not quite right.

     

    Anyway, your links helped me to understand it better and I got the example to work by modifying it accordingly, thank you!

     

    Raphael

Children