@@ -5,20 +5,20 @@ discard block |
||
| 5 | 5 | { |
| 6 | 6 | public $lastPostId; |
| 7 | 7 | |
| 8 | - public $url; |
|
| 8 | + public $url; |
|
| 9 | 9 | |
| 10 | - function setUrl ($url) |
|
| 11 | - { |
|
| 12 | - $this->url = $url; |
|
| 13 | - } |
|
| 10 | + function setUrl ($url) |
|
| 11 | + { |
|
| 12 | + $this->url = $url; |
|
| 13 | + } |
|
| 14 | 14 | |
| 15 | - function getUrl () |
|
| 16 | - { |
|
| 17 | - return $this->url; |
|
| 18 | - } |
|
| 15 | + function getUrl () |
|
| 16 | + { |
|
| 17 | + return $this->url; |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - function setLastPostId ($lastPostId) |
|
| 21 | - { |
|
| 20 | + function setLastPostId ($lastPostId) |
|
| 21 | + { |
|
| 22 | 22 | $this->lastPostId = $lastPostId; |
| 23 | 23 | } |
| 24 | 24 | |
@@ -27,22 +27,22 @@ discard block |
||
| 27 | 27 | return $this->lastPostId; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - function getApiEndPoint() |
|
| 31 | - { |
|
| 32 | - $apiEndPoint = $this->getUrl(); |
|
| 30 | + function getApiEndPoint() |
|
| 31 | + { |
|
| 32 | + $apiEndPoint = $this->getUrl(); |
|
| 33 | 33 | |
| 34 | - if ($this->getLastPostId() != "") { |
|
| 34 | + if ($this->getLastPostId() != "") { |
|
| 35 | 35 | $apiEndPoint = $this->getUrl() . '?after=' . $this->getLastPostId(); |
| 36 | 36 | } |
| 37 | - return $apiEndPoint; |
|
| 38 | - } |
|
| 39 | - function getPayload() |
|
| 40 | - { |
|
| 41 | - return array( |
|
| 42 | - ); |
|
| 43 | - } |
|
| 44 | - function getMethod() |
|
| 45 | - { |
|
| 46 | - return 'GET'; |
|
| 47 | - } |
|
| 37 | + return $apiEndPoint; |
|
| 38 | + } |
|
| 39 | + function getPayload() |
|
| 40 | + { |
|
| 41 | + return array( |
|
| 42 | + ); |
|
| 43 | + } |
|
| 44 | + function getMethod() |
|
| 45 | + { |
|
| 46 | + return 'GET'; |
|
| 47 | + } |
|
| 48 | 48 | } |