GetSegmentRefreshProgress

Gets the refresh progress for a segment

This method retrieves the status of a segment refresh via its ID.

A status will be returned for the segment, which will be either 'NotStarted', 'NotFinished', 'Finished' or 'Failed'.

SOAP action: http://apiconnector.com/v2/ApiService/GetSegmentRefreshProgress

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Segment ID - required; integer

Output parameters

  • GetSegmentRefreshProgressResult
    ID - _integer*
    Status - _string ('NotStarted', 'NotFinished', 'Finished', 'Failed')*

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var segmentId = 1;
	var segmentRefreshProgress = client.GetSegmentRefreshProgress(segmentId);
	while (segmentRefreshProgress.Status == ApiSegmentRefreshStatuses.NotStarted && segmentRefreshProgress.Status == ApiSegmentRefreshStatuses.NotFinished)
	{
	    Thread.Sleep(60000);
	    segmentRefreshProgress = client.GetSegmentRefreshProgress(segmentId);
	}
}