How to can I use webpagetest api in java code to get the test results?

How to can I use webpagetest api in java code to get the test results?

I want to write a java program to test the website, That program will request to the webpagetest api and use the results in a customized report.

Please help me on this, If there is code already written please provide help.

Regards
Bhupendra