Messtone LLC Manages(Logic):Ryder Samples

Messtone Devices Enables Ryder Dev API, Example:Request Request URL https://dev.api.scs.ryder.com/br-st/getcache application/json Sample Schema {“body”:{ },”statusCode”:”100″,”statusCodeValue”:0} Code Sample Java // //This sample uses the Apache HTTP client from HTTP Components(http://hc.apache.org/httpcomponents-client-ga/) import java.net.URI; import org.apache.http.HttpEntity;import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet;import org.apache.http.client.utils.URIBuilder; import org.aoache.http.impl.client.HttpClients;import org.apache.http.util.EntityUtils; public class JavaSample {public static void main(string[ ]args){HttpClient httpclient=HttpClients.createDefault( );try{URIBuilder builder=new URIBuilder(“https://dev.api.scs.ryder.com/br-st/getcache”);URI uri=builder.build( );HttpGet request=new HttpGet(uri);request.setHeader(“Ocp-Apim-Subscription-Key”, “{subscription key}”);//Request body StringEntity reqEntity=new StringEntity(“{body}”);request.setEntity(reqEntity);HttpResponse response=httpclient.execute(request);HttpEntity entity=response.getEntity( );if(entity !=null){System.out.println(EntityUtils.toString(entity));}}catch(Exception e){System.out.println(e.getMessage( ));}}}

https://i.capitalone.com/Jz65ggGYU

UNITED STATES – OCTOBER 08: A Ryder truck pulls into a Ryder rental location in the Queens borough of New York, U.S., on Monday, Oct. 8, 2007. Ryder System Inc., the largest U.S. truck-leasing company, said third-quarter earnings were less than it forecast as the economy weakened beyond housing and reduced demand for freight-hauling trucks. The shares fell the most since 2004. (Photo by Jb Reed/Bloomberg via Getty Images)

Leave a comment