@@ -184,7 +184,6 @@ |
||
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
187 | - * @param string $api_key |
|
188 | 187 | */ |
189 | 188 | public function GetApiKey() |
190 | 189 | { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /** |
17 | 17 | * Get a list of behaviors |
18 | 18 | * @param object Containing query arguments |
19 | - * @return object Result of the request |
|
19 | + * @return string Result of the request |
|
20 | 20 | */ |
21 | 21 | public function Get($args = array("limit" => 50)) |
22 | 22 | { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Get a list of Visits |
28 | 28 | * @param object Containing query arguments |
29 | - * @return object Result of the request |
|
29 | + * @return string Result of the request |
|
30 | 30 | */ |
31 | 31 | public function GetVisit($args = array("limit" => 50)) |
32 | 32 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * Get one or multiple events |
38 | 38 | * @param string event id, leave null for list of events |
39 | 39 | * @param object Containing query arguments |
40 | - * @return object Result of the request |
|
40 | + * @return string Result of the request |
|
41 | 41 | */ |
42 | 42 | public function GetEvent($eventId = null, $args = array("limit" => 50)) |
43 | 43 | { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * Create new event |
49 | 49 | * @param object Containing all the information of a event |
50 | - * @return object Result of the request |
|
50 | + * @return string Result of the request |
|
51 | 51 | */ |
52 | 52 | public function CreateEvent($event) |
53 | 53 | { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Update a event |
59 | 59 | * @param object Event containing the eventid and fields that need to be updated |
60 | 60 | * @throws \Exception When eventid is not present |
61 | - * @return object Result of the request |
|
61 | + * @return string Result of the request |
|
62 | 62 | */ |
63 | 63 | public function UpdateEvent($event) |
64 | 64 | { |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * Updates a maximum of 50 events at a time. |
74 | 74 | * @param array Containing events with a maximum of 50 |
75 | 75 | * @throws \Exception When more that 50 events are provided |
76 | - * @return object Result of the request |
|
76 | + * @return string Result of the request |
|
77 | 77 | */ |
78 | 78 | public function UpdateBulk($events) |
79 | 79 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public function __construct($apikey, $projectid) |
12 | 12 | { |
13 | - parent::__construct($apikey, "/project/" . $projectid . "/behavior"); |
|
13 | + parent::__construct($apikey, "/project/".$projectid."/behavior"); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * Get one or multiple campaigns |
18 | 18 | * @param string campaign id, leave null for list of campaigns |
19 | 19 | * @param object Containing query arguments |
20 | - * @return object Result of the request |
|
20 | + * @return string Result of the request |
|
21 | 21 | */ |
22 | 22 | public function Get($campaignId = null, $args = array("limit" => 50)) |
23 | 23 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * Create new campaign |
29 | 29 | * @param object Containing all the information of a bucket |
30 | - * @return object Result of the request |
|
30 | + * @return string Result of the request |
|
31 | 31 | */ |
32 | 32 | public function Create($campaign) |
33 | 33 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * Update a box |
39 | 39 | * @param object Box containing the boxid and fields that need to be updated |
40 | 40 | * @throws \Exception When boxid is not present |
41 | - * @return object Result of the request |
|
41 | + * @return string Result of the request |
|
42 | 42 | */ |
43 | 43 | public function Update($campaign) |
44 | 44 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * Delete a campaign object by campaign id |
54 | 54 | * @param string Id of the bucket |
55 | 55 | * @param string Id of the object to be deleted |
56 | - * @return object Result of the request |
|
56 | + * @return string Result of the request |
|
57 | 57 | */ |
58 | 58 | public function Delete($campaignId) |
59 | 59 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * Update a box |
65 | 65 | * @param object Box containing the boxid and fields that need to be updated |
66 | 66 | * @throws \Exception When boxid is not present |
67 | - * @return object Result of the request |
|
67 | + * @return string Result of the request |
|
68 | 68 | */ |
69 | 69 | public function Fields($campaignId) |
70 | 70 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public function __construct($apikey, $projectid) |
12 | 12 | { |
13 | - parent::__construct($apikey, "/project/" . $projectid . "/campaign"); |
|
13 | + parent::__construct($apikey, "/project/".$projectid."/campaign"); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | public function testSetApiKey() |
45 | 45 | { |
46 | - $Base = new Base(1,"/base"); |
|
46 | + $Base = new Base(1, "/base"); |
|
47 | 47 | $Base->setApiKey(2); |
48 | 48 | $this->assertEquals( |
49 | 49 | 2, |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | public function testGetApiKey() |
55 | 55 | { |
56 | - $Base = new Base(1,"/base"); |
|
56 | + $Base = new Base(1, "/base"); |
|
57 | 57 | $Base->setApiKey(3); |
58 | 58 | $this->assertEquals( |
59 | 59 | 3, |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | public function testApiEndpoint() |
65 | 65 | { |
66 | - $Base = new Base(1,"/base"); |
|
66 | + $Base = new Base(1, "/base"); |
|
67 | 67 | $this->assertEquals( |
68 | 68 | 'https://api.datatrics.com/2.0/base', |
69 | 69 | $Base->getApiEndpoint() |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | public function testSetApiEndpoint() |
74 | 74 | { |
75 | - $Base = new Base(1,"/base"); |
|
75 | + $Base = new Base(1, "/base"); |
|
76 | 76 | $Base->setApiEndpoint("https://api.datatrics.com/2.0/set"); |
77 | 77 | $this->assertEquals( |
78 | 78 | 'https://api.datatrics.com/2.0/set', |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | public function testGetApiEndpoint() |
84 | 84 | { |
85 | - $Base = new Base(1,"/base"); |
|
85 | + $Base = new Base(1, "/base"); |
|
86 | 86 | $Base->setApiEndpoint("https://api.datatrics.com/2.0/get"); |
87 | 87 | $this->assertEquals( |
88 | 88 | 'https://api.datatrics.com/2.0/get', |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public function __construct($apikey, $projectid) |
12 | 12 | { |
13 | - parent::__construct($apikey, "/project/" . $projectid . "/scorecard"); |
|
13 | + parent::__construct($apikey, "/project/".$projectid."/scorecard"); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public function __construct($apikey, $projectid) |
12 | 12 | { |
13 | - parent::__construct($apikey, "/project/" . $projectid . "/interaction"); |
|
13 | + parent::__construct($apikey, "/project/".$projectid."/interaction"); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public function __construct($apikey, $projectid) |
12 | 12 | { |
13 | - parent::__construct($apikey, "/project/" . $projectid . "/nextbestaction"); |
|
13 | + parent::__construct($apikey, "/project/".$projectid."/nextbestaction"); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public function __construct($apikey, $projectid) |
12 | 12 | { |
13 | - parent::__construct($apikey, "/project/" . $projectid . "/content"); |
|
13 | + parent::__construct($apikey, "/project/".$projectid."/content"); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | public function __construct($apikey, $projectid) |
12 | 12 | { |
13 | - parent::__construct($apikey, "/project/" . $projectid . "/profile"); |
|
13 | + parent::__construct($apikey, "/project/".$projectid."/profile"); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |