You will have to get familiar with HttpClient, HttpRequest, and HttpResponse if you're not already.
Very simply:
Step 1) build your uri with your api key and search terms as per google's syntax
Step 2) perform a post using that uri
Step 3) decode the response from the post