Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function getUrlData(string $url): IframelyDTO |
||
43 | { |
||
44 | $response = $this->client->request( |
||
45 | 'GET', |
||
46 | IframelyClientInterface::API_BASE_URI, |
||
47 | ['query' => ['api_key' => $this->apiKey, 'url' => $url, 'html' => 1]] |
||
48 | ); |
||
49 | |||
50 | return new IframelyDTO(json_decode($response->getBody()->getContents(), true)); |
||
51 | } |
||
52 | } |
||
53 |