¡@

Home 

java Programming Glossary: jsonhttpcontent

How to POST request to Google Shortener API with Google API Java Client and parse a JSON response?

http://stackoverflow.com/questions/4724270/how-to-post-request-to-google-shortener-api-with-google-api-java-client-and-pars

import com.google.api.client.json.JsonHttpContent import com.google.api.client.util.GenericData public class GoogleShortener.. data new GenericData data.put longUrl http www.google.com JsonHttpContent content new JsonHttpContent content.data data HttpRequest request.. longUrl http www.google.com JsonHttpContent content new JsonHttpContent content.data data HttpRequest request transport.buildPostRequest..