DO Ideas 2

Keep last Event ID in API under /events/last

Each time before create bunch of droplets or do some other action I need to get information about droplets, images, ssh_keys. It takes time and produce load to DO API.

So I propose keep(save) last event id for account at /events/[last]

That provide developers an ability to save last event in an application and compare it with /events/last next time before doing a numbers of API requests.

  • Alexey Mirniy
  • Sep 11 2018
  • Shipped
  • Sep 11, 2018

    Admin Response

    Hi! We recently released version 2 of our API into public beta. This includes adding an "actions" endpoint that lists all events. To get the last one, you can use the new pagination support and simply add the parameter "?per_page=1" Check out the documentation: While the beta is on-going, we’re looking for as much feedback as possible. If there’s anything else you’d like to see in the API, please open an issue over on our GitHub page: Thanks!
  • Attach files
  • Alexey Mirniy commented
    September 11, 2018 18:02


    You are the best!