All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Remove All Flight Alert
PostPosted: Thu Mar 02, 2017 6:28 am 
Offline
jmehta - FlightAware user avatar

Joined: Tue Apr 05, 2016 2:08 am
Posts: 9
Hello,

How can I remove all flight alerts ?

Thank you,
Vedang.


Top
 Profile  
 
 Post subject: Re: Remove All Flight Alert
PostPosted: Thu Mar 02, 2017 12:18 pm 
Offline
FlightAware Staff
conej730 - FlightAware user avatar

Joined: Sat Sep 13, 2008 11:00 pm
Posts: 16
You can delete alerts with the DeleteAlert method. To delete all of your alerts call GetAlerts then iterate over the result passing each alertId into DeleteAlert. Here is some pseudocode:

Code:
alerts = GetAlerts();
foreach (alert in alerts) {
    result = DeleteAlert(alert.getAlertId());
    // If the result is 0 notify that the delete failed.
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: