Java Google Alerts API provides you with a lightweight library especially designed to help developers create, delete and update Google alerts within their applications.

Features

  • Latest update on 15/09/2016 (Version 2) - UTC +08:00 - Singapore Time
  • Supported Finance source
  • Fixed: Region issue
  • *Note: Please see the email that your Google Alert using
  • (maybe the email alert is using uppercase or lowercase)
  • So GAService("nnhiti@gmail.com", "pass") will different with GAService("NNHITI@gmail.com", "pass")
  • ----------------------------------------------------------------------------------------------------------------------
  • Required libraries
  • No required library
  • -
  • // First of all, we have to login.. return empty string if login successful else return an error string
  • GAService service = new GAService("yourEmail", "yourPassword");
  • service.doLogin();
  • // Get all alerts.
  • List<Alert> lstAlert = service.getAlerts();
  • // Get alert by deliver.
  • List<Alert> lstAlert = service.getAlertByDelivery(DeliveryTo.FEED);
  • // Get alert by id.
  • Alert alert = service.getAlertById(alertId);
  • // Get alert by search query.
  • List<Alert> lstAlert = service.getAlerts("Your Query");
  • // Create alert. return an alert id if created successful else return an error string
  • // Default deliver is email
  • Alert alert = new Alert();
  • alert.setHowMany(HowMany.ONLY_THE_BEST_RESULTS);
  • alert.setHowOften(HowOften.ONCE_A_DAY);
  • alert.setSearchQuery("Your Query");
  • alert.setDeliverTo(DeliverTo.FEED);
  • alert = service.createAlert(alert);
  • // Delete an alert.
  • service.deleteAlert(alertId);
  • // Delete list of alerts.
  • List<String> lstAlertId = new ArrayList<String>();
  • lstAlertId.add(alertId);
  • service.deleteAlert(lstAlertId);
  • // Update alert. return new alert id if updated successful else return an error string
  • AlertBean alert = new AlertBean();
  • alert.setId(editAlertId);
  • alert.setSearchQuery("your new query");
  • service.updateAlert(alert);
  • Appreciate if you can send to me an email when you have any ideas or need to improve/update
  • Ha Nguyen: nnhiti@gmail.com
  • Thanks so much.

Project Activity

See All Activity >

License

Creative Commons Attribution License

Follow Java Google Alerts API

Java Google Alerts API Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Java Google Alerts API!

Additional Project Details

Languages

English

Programming Language

Java

Registered

2013-09-04