Not logged in - Login
View History

Parcel LifeCycle Service CSharp Example

    try
    {
        // Create authentication object
        authentication auth = new authentication()
        {
            delisId = delisId, // Your DelisID
            authToken = authToken, // Your token
            messageLanguage = messageLanguage // Your messageLanguage
        };

        TrackingResult trackingResult;

        // Create client object
        using (ParcelLifecycleService.ParcelLifecycleService parcelLifeCycleServiceClient = new ParcelLifecycleService.ParcelLifecycleService())
        {
            // Add authentication to client
            parcelLifeCycleServiceClient.authenticationValue = auth;

            // Request tracking result
            trackingResult = parcelLifeCycleServiceClient.getTrackingData(parcelNumber);
        }

        // Add your code here

    }
    catch (Exception e)
    {
        // handle exception here!
    }