cgiovanacci / withings

Withing for .NET
3 stars 1 forks source link

Empty URL #1

Open Hydro8 opened 8 years ago

Hydro8 commented 8 years ago

Hi

I use your library to connect my home automation to withings.

`using System.Text; using System.Web; using RestSharp; using RestSharp.Authenticators; using RestSharp.Authenticators.OAuth;

namespace Withings { public class Program : PackageBase { public static Withings.Authenticator authenticator; public const string consumerKey = "key"; public const string consumerSecret = "secret";

    static void Main(string[] args)
    {
        PackageHost.Start<Program>(args);
    }

    public override void OnStart()
    {

        authenticator = new withings.authenticator("https://oauth.withings.com/", consumerkey, consumersecret, "http://localhost:50670/step2", new withings.usercredentials());

        string authorizeurl = authenticator.usercredentials.oauthtoken;

Console.WriteLine(authorizeurl); `

The output is : https://oauth.withings.com/account/authorize?oauth_token=

Do you think something change on the withings oauth ?

Thank

Hydro8 commented 7 years ago

Antoine idea ?