CSP_CREST.Services.CRESTService.GetCustomerAsync C# (CSharp) Метод

GetCustomerAsync() публичный Метод

public GetCustomerAsync ( string CustomerAADId ) : Task
CustomerAADId string
Результат Task
        public Task<Customer> GetCustomerAsync(string CustomerAADId)
        {
            string[] args = new string[] { cspApiUrl, CustomerAADId, reseller_id };
            string uri = string.Format("{0}/customers/get-by-identity?provider=AAD&type=external_group&tid={1}&etid={2}", args);

            APIService service = new APIService(uri);

            service.Request.Headers.Add("api-version", "2015-03-31");
            service.Request.Headers.Add("x-ms-correlation-id", Guid.NewGuid().ToString());
            service.Request.Headers.Add("x-ms-tracking-id", Guid.NewGuid().ToString());
            service.Request.Headers.Add("Authorization", "Bearer " + sa_token.access_token);

            return service.GetAsync<Customer>();
        }