Not logged in - Login
View History

Depot Data Service CSharp Example

try
{
            string delisId = "my delis ID";
            string password = "my delis password";
            string messageLanguage = "en_US";
            string authToken = "";
                        
            // create a client object
            LoginService.LoginService loginServiceClient = new LoginService.LoginService();
            
            // create a login object and provide the delisId and password
            LoginService.Login login = new Login();
            login = loginServiceClient.getAuth(delisId, password, messageLanguage);
            
            // get the token
            authToken = login.authToken;

            DepotDataService.DepotDataService dataService = new DepotDataService.DepotDataService();

            // add authentication
            dataService.authenticationValue = new DepotDataService.authentication()
            {
                delisId = delisId,
                authToken = authToken
            };

            // get the depot data
            DepotData depotData = dataService.getDepotData("country code", "depot number", "zip code");
}
catch (Exception e) 
{
       // handle exception here!
}