Antville.org

Supported Application Programming Interfaces

Antville supports the following application programming interfaces: The URL endpoint for each of these APIs is located at http://www.antville.org/api/.


Callbacks

Each Antville site provides an option in the preferences form to define a callback URL that will be invoked each time the site content has changed. This way users can define custom handlers for different site events with their own code running behind this URL – on a server and in a programming language of their choice.

The callback URL will be invoked as an HTTP POST request with the following parameters:

  • type – the resource type (a string like "Story" or "Comment")
  • id – the identifier of the resource as number
  • url – the URL of the resource as string
  • date – the event date as Unix timestamp
  • user – the name of the user who triggered the event
  • site – the title or name of the site
  • origin – the URL of the site as string

Antville itself provides a default callback URL invoking the basic ping method of the weblogs.com API: http://www.antville.org/api/callback.

Online for 2647 days
Last modified: 2008-10-21 13:48
Status
Youre not logged in ... Login
Menu
... Home
... Health
... Help
... APIs


RSS feed

Made with Antville
Helma Object Publisher