Esempio n. 1
0
        public async Task <string> GetApplicationSidAsync()
        {
            const string defaultApplicationName = "Call tracking app";
            var          applications           = await ApplicationResource.ReadAsync(defaultApplicationName, client : _client);

            var application = applications.FirstOrDefault() ??
                              await ApplicationResource.CreateAsync(defaultApplicationName);

            return(application.Sid);
        }