Are you specifically looking for an API way to do this? If not you can also get the info from the client summary page by filtering on wireless clients, enabled the connected to column, and then export to csv.
Ryan If you found this post helpful, please give it
Kudos. If my answer solves your problem please click
Accept as Solution so others can benefit from it.