Thread:Extension talk:GlobalUsage/usage of API features/reply

See the example on the api.php page.