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
  • I think it's something missing on your end. We use this in our tests as you can find here (the test are working as you can find on the our GitHub page). 

    We've also developed a web application using the GroupShareKit which is available here. If you want to find more on how we did it have a look here.

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

  • 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

  • Thanks for spotting the inconsistency. It was like that initially but with recent update we changed it.

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

Reply Children