|
@@ 128-136 (lines=9) @@
|
| 125 |
|
* @param int $pinId |
| 126 |
|
* @return bool |
| 127 |
|
*/ |
| 128 |
|
public function delete($pinId) |
| 129 |
|
{ |
| 130 |
|
$this->request->checkLoggedIn(); |
| 131 |
|
|
| 132 |
|
$post = PinHelper::createSimplePinRequest($pinId); |
| 133 |
|
$postString = UrlHelper::buildRequestString($post); |
| 134 |
|
$response = $this->request->exec(UrlHelper::RESOURCE_DELETE_PIN, $postString); |
| 135 |
|
return $this->response->checkResponse($response); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
/** |
| 139 |
|
* Get information of pin by PinID |
|
@@ 144-151 (lines=8) @@
|
| 141 |
|
* @param $pinId |
| 142 |
|
* @return array|bool |
| 143 |
|
*/ |
| 144 |
|
public function info($pinId) |
| 145 |
|
{ |
| 146 |
|
$get = PinHelper::createInfoRequest($pinId); |
| 147 |
|
$url = UrlHelper::RESOURCE_PIN_INFO.'?'.UrlHelper::buildRequestString($get); |
| 148 |
|
$response = $this->request->exec($url); |
| 149 |
|
|
| 150 |
|
return $this->response->checkResponse($response); |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
protected function getScope() |
| 154 |
|
{ |