Improve : Use scala.concurrent.Future instead of custom callback function.
1. Now all asynchronous APIs return Future object. You can use it to return as Web response in Play!.
2. Wrap asynchronous functions with API.sync if you want to run APIs synchronously. See Application.sync.