-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathexample.php
More file actions
57 lines (44 loc) · 928 Bytes
/
Copy pathexample.php
File metadata and controls
57 lines (44 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/**********************
Example File
**********************/
require("dhl_tracking.class.php");
################
#
# Start Class
#
################
$track = new dhl_tracking('test');
$track->setAuth("********", "********");
################
#
# Single Request
#
################
$track_one = 1111111111;
$req_one = $track->single($airbill);
print "\n<p>Single Result</p>\n";
print "\n<pre>\n";
print_r($req_one);
print "\n</pre>";
################
#
# Single Request
#
################
$track_multi = array();
$track_multi[] = 1111111111;
$track_multi[] = 1111111112;
$track_multi[] = 1111111113;
$track_multi[] = 1111111114;
$track_multi[] = 1111111115;
$track_multi[] = 1111111116;
$track_multi[] = 1111111117;
$track_multi[] = 1111111118;
$track_multi[] = 1111111119;
$req_multi = $track->multipul($track_multi);
print "\n<p>Multi Result</p>\n";
print "\n<pre>\n";
print_r($req_multi);
print "\n</pre>";
?>