Actions
- Table of contents
- Specification
- Methods
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.0 | Init |
Jar File Download¶
properties file¶
- service.properties
- json.url - provided by DotNet team
- connection.timeout - set connection timeout
- connection.read.timeout - set connection read timeout
Methods¶
cosway.eCos2WebApi.service.TrackService service = new cosway.eCos2WebApi.service.TrackService();
getTrackingOrderDetail (GetTrackingOrderDetail)¶
cosway.eCos2WebApi.model.ResponseTrack responseBean = service.getTrackingOrderDetail(String orderId)
- cosway.eCos2WebApi.model.ResponseTrack
- errorCode - String
- errorMessage - String
- detail - TrackOrderDetail
- companyName - String
- trackingNo - String
- updateDatetime - Date
Live tracking.my¶
third party Javascript¶
<script src="//www.tracking.my/track-button.js"></script> <script> function inputTrack(num) { TrackButton.track({ tracking_no: num }); } </script> <input type="button" value="Detail" onclick="inputTrack('<%=trackNo %>')">
Pop up new windows¶
<script> function viewDetail(num) { window.open("https://www.tracking.my/externalcall?tracking_no="+num,"_blank", getSpecs()).focus(); } function getSpecs() { return "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=100,width=500,height=600"; } </script> <input type="button" value="Detail" onclick="viewDetail('<%=trackNo %>')">
Updated by Soh Keong over 3 years ago ยท 8 revisions