Skip to content

Commit

Permalink
test api
Browse files Browse the repository at this point in the history
  • Loading branch information
kol4k committed Mar 1, 2018
1 parent 1b2b501 commit 8c00dde
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Http/Controllers/Library/SusiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public function __construct(){
*/
public function getFunction()
{
// $request = $this->myClient->get($this->apiURL.$query);
// $response = $request->getBody();
// $data = json_decode($response, true);
// return $data['answers'][0]['actions'][0]['expression'];
$data = 'hai';
return $data;
$request = $this->myClient->get($this->apiURL.'capital of indonesia');
$response = $request->getBody();
$data = json_decode($response, true);
return $data['answers'][0]['actions'][0]['expression'];
// $data = 'hai';
// return $data;
}
}

0 comments on commit 8c00dde

Please sign in to comment.