Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function parse(string $resume) |
||
24 | { |
||
25 | try { |
||
26 | $response = $this->client->post('parser/resume', [ |
||
27 | 'json' => [ |
||
28 | 'DocumentAsBase64String' => base64_encode($resume) |
||
29 | ] |
||
30 | ]); |
||
31 | } catch (ClientException $e) { |
||
32 | return json_decode($e->getResponse()->getBody(), true); |
||
33 | } |
||
34 | |||
35 | return json_decode($response->getBody()->getContents(), true); |
||
36 | } |
||
37 | } |
||
38 |