Search code examples
asp.netlistaweber

How to get all users from aweber list in asp.net?


I am developing web application (using VS2010 and asp.net,c#) that gets all aweber users list. I am using following code to achieve it.

i am using this useful document. as per this document i did following things..

  1. created account in aweber labs https://labs.aweber.com/
  2. created "test" app
  3. Use the "consumerKey" and "consumerSecret" code which is given by aweber team.
  4. used following code

    String consumerKey = "Afdgdfgdgfgdfll";
    String consumerSecret = "zDKexfgdfgdfQqlKh5KD";
    API api = new API(consumerKey, consumerSecret);
    api.CallbackUrl = "http://" + Request.Url.Host + ":" + Request.Url.Port + "/Authorize.aspx";
    api.get_request_token();
    HttpContext.Current.Session.Add("oauth_token", api.OAuthToken);
    HttpContext.Current.Session.Add("oauth_token_secret", api.OAuthTokenSecret);
    api.authorize();
    

i am getting null value "OAuthToken". If any solution then let me guide.

Thanks in advance. !!


Solution

  • Check out http://aweber.codeplex.com/

    This will save you a lot of work.