Messtone LLC Manages(URL):Get Bill of Lading

Messtone Devices Enables HTTP Method GET URL:/BillOfLading Example Request as so`require_once ‘HTTP/Request2.php’;$request=new HTTP_Request2( );$request->setUrl(‘{baseurlhttps://www.messtonecoms.com}/BillOfLading?ProNumber=I111111111’);$request=>setMethod(HTTP_Request2::METHOD_GET);$request->setConfig(array(‘follow_redirects’=>TRUE));$request->setHeader(array(‘apiKey’=>’Messtone API Key’));try{$response=$request->send( );if($response->getStatus( )==200){echo $response->getBody( );}else{echo ‘Unexpected HTTP status:’.$response->getStatus( ).’ ‘.$response->getReasonPhrase( );}}catch(HTTP_Request2_Exception $e){echo ‘Error’.e->getMessage( );}

Leave a comment