@@ -1,26 +1,26 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | class SendJodel extends AbstractRequest { |
4 | - public $location; |
|
5 | - public $ancestor = ""; |
|
6 | - public $color = ""; |
|
4 | + public $location; |
|
5 | + public $ancestor = ""; |
|
6 | + public $color = ""; |
|
7 | 7 | |
8 | - function getApiEndPoint() |
|
9 | - { |
|
10 | - return '/v3/posts/'; |
|
11 | - } |
|
8 | + function getApiEndPoint() |
|
9 | + { |
|
10 | + return '/v3/posts/'; |
|
11 | + } |
|
12 | 12 | |
13 | - function getPayload() |
|
14 | - { |
|
15 | - return array( |
|
13 | + function getPayload() |
|
14 | + { |
|
15 | + return array( |
|
16 | 16 | "ancestor" => $this->ancestor, |
17 | 17 | "color" => $this->color, |
18 | - "location" => $this->location->toArray(), |
|
19 | - "message" => $_POST['message'], |
|
20 | - ); |
|
21 | - } |
|
22 | - function getMethod() |
|
23 | - { |
|
24 | - return 'POST'; |
|
25 | - } |
|
18 | + "location" => $this->location->toArray(), |
|
19 | + "message" => $_POST['message'], |
|
20 | + ); |
|
21 | + } |
|
22 | + function getMethod() |
|
23 | + { |
|
24 | + return 'POST'; |
|
25 | + } |
|
26 | 26 | } |