0 Replies Latest reply: Nov 2, 2011 10:38 AM by David.Trigano RSS

Get data from sub account

Newbie

Hi,

 

i'm trying to get informations of sub account profiles, using the API in c#.

 

This is my sample code :

 

AnalyticsDataService proxy = new AnalyticsDataService();

public bool Connection(string login, string password, string account)

{

    try

    {

        WTCredentialsHeader cred = new WTCredentialsHeader();

        cred.Username = login;

        cred.Password = password;

        cred.AccountName = account;

        cred.AuthenticationType = WTAuthenticationType.WebTrends;

        proxy.WTCredentialsHeaderValue = cred;

        proxy.Url = "https://msapi.webtrends.com/Services/AnalyticsDataService.asmx";

        proxy.CheckAvailability();

        WTSessionHeader sess = proxy.WTSessionHeaderValue;

        return true;

    }

    catch

    {

        return false;

    }

}

 

Can you tell me if i've got a specific code to get sub account, like "WWW/PARTNER", thanks you.

 

David T.