SugarSync Client

Aug 7, 2012 at 5:31 PM

Hey,

there were some breaking changes in the SugarSync API lately. Any chance to relfect those changes in the library?

cheers

Coordinator
Aug 8, 2012 at 1:40 AM

SugarSync does not change latest version.
Please tell me a code that could not work.
I'll review and show you how modify it.

regards

Aug 8, 2012 at 8:59 AM

Well, I couldn't get to work the sample from the documentation:

//====SugarSync Sync sample===========================//
var cl = new SugarSyncClient("mailaddress", "password", "AccessKeyID","PrivateAccessKey");
cl.Authenticate();
var rs = cl.GetUserInfo();

i have generated my access keys on SugarSync side and i get an server reply saying "invalid token" all the time.

Can you check this on your side?

 

cheers

 

Coordinator
Aug 9, 2012 at 1:22 AM
Edited Aug 9, 2012 at 1:32 AM

There is no problem on program.
I executed your code and could get UserInfo.

Please ensure your userName,Password, Access Key ID, Private Access Key.

Aug 11, 2012 at 5:37 PM

Higty,

i managed to implement the changes in the library to reflect the API changes (<appAuthorization>). Can you post some SugarSync Async Sample?

Coordinator
Aug 16, 2012 at 5:50 AM

Async version is here.
----------------------------------------------------------------------------------------------------
static void Main(string[] args)
{
    var cl = new SugarSyncClient("mailaddress", "password", "AccessKeyID","PrivateAccessKey");
    if (cl.Authenticate() == true)
    {
        cl.GetUserInfo(user =>
        {
            var name = user.UserName;
        });
    }
    Console.ReadLine();
}
----------------------------------------------------------------------------------------------------

Does it meet your requirement?