GetRefreshToken - Schwenkner/SugarSyncNet GitHub Wiki
The refresh token is an oauth token to be used for forther authentication. The the username and password must not be saved within the application. SugarSync does not provide a web authentication as suggested by oauth but it comes with a Http Get request to fetch a refresh token.
This Http Get request is wrapped by the GetRefreshToken method.
UserLogin userLogin = await client.GetRefreshTokenAsync("userName", "Password");
The UserLogin class contains a property with the returned refresh token. This refresh token can be saved within the application further being used to create a new instance of UserLogin.
UserLogin userLogin = new UserLogin("refreshToken");
Assigning an UserLogin object to the Clients UserLogin property is sufficiont for further access.
Client.UserLogin = userLogin;