Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty URL #1

Open
Hydro8 opened this issue Apr 1, 2016 · 1 comment
Open

Empty URL #1

Hydro8 opened this issue Apr 1, 2016 · 1 comment

Comments

@Hydro8
Copy link

Hydro8 commented Apr 1, 2016

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
Copy link
Author

Hydro8 commented Jan 25, 2017

Antoine idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant