The subscription Api
Inheritance: InstaSharp.Endpoints.InstagramApi
 public SubscriptionController(ISubscriptionRepository subscriptions, ILogger log, InstagramConfig config)
 {
     _log = log;
     _config = config;
     _subscriptionEndpoint = new Subscription(_config);
     _subscriptions = subscriptions;
 }
        public async Task<IHttpActionResult> PostUnsubscribeAll()
        {
            // Create InstaSharp subscription endpoint
            var subscriptions = new Subscription(Dependencies.InstagramConfig);

            // Subscribe for updates from Instagram
            var response = await subscriptions.RemoveAllSubscriptions();
            return Ok(response);
        }
Exemple #3
0
 public Realtime()
 {
     realtime = new Subscription(base.Config);
 }
Exemple #4
0
 public Realtime()
 {
     realtime = new Subscription(base.Config);
 }