CallfireApiClient.Api.Campaigns.BatchesApi.Get C# (CSharp) Method

Get() public method

Returns a single Batch instance for a given batch id. This API is useful for determining the state of a validating batch.
in case HTTP response code is 400 - Bad request, the request was formatted improperly. in case HTTP response code is 401 - Unauthorized, API Key missing or invalid. in case HTTP response code is 403 - Forbidden, insufficient permissions. in case HTTP response code is 404 - NOT FOUND, the resource requested does not exist. in case HTTP response code is 500 - Internal Server Error. in case HTTP response code is something different from codes listed above. in case error has occurred in client.
public Get ( long id, string fields = null ) : Batch
id long id of batch
fields string limit fields returned. Example fields=id,name
return Batch
        public Batch Get(long id, string fields = null)
        {
            var queryParams = ClientUtils.BuildQueryParams("fields", fields);
            return Client.Get<Batch>(BATCH_PATH.ReplaceFirst(ClientConstants.PLACEHOLDER, id.ToString()), queryParams);
        }