| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function obtainAccess(string $requestToken) |
||
| 19 | { |
||
| 20 | $data = [ |
||
| 21 | 'consumer_key' => $this->pocket->getConsumerKey(), |
||
| 22 | 'code' => $requestToken, |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $response = $this->request('/v3/oauth/authorize', $data); |
||
| 26 | $responseData = json_decode($response->getBody()); |
||
| 27 | |||
| 28 | return $responseData; |
||
| 29 | } |
||
| 30 | |||
| 65 |