public async Task <bool> UnsubscribeAccountFromWebhooks(string environment, string userId)
        {
            var userCredentials = await CredentialsRetriever.GetUserCredentials(userId);

            var result = await Webhooks.RemoveAllAccountSubscriptionsAsync(environment, userCredentials);

            return(result);
        }
Пример #2
0
        public static void RemoveSubscriptionToAccountActivity()
        {
            var task = Webhooks.RemoveAllAccountSubscriptionsAsync(webHookEnvironmentName, Auth.Credentials);

            task.Wait();
        }