diff options
Diffstat (limited to 'app/Http')
| -rw-r--r-- | app/Http/Controllers/TestController.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Http/Controllers/TestController.php b/app/Http/Controllers/TestController.php index 3254983..09bb15b 100644 --- a/app/Http/Controllers/TestController.php +++ b/app/Http/Controllers/TestController.php @@ -15,6 +15,8 @@ use App\MALUser; use App\Calendar; use App\Airing; +use Jikan\MyAnimeList\MalClient; + class TestController extends Controller { /** * Shows the index page. @@ -26,6 +28,21 @@ class TestController extends Controller { return view('index', [ ]); } + public function user() { + + $jikan = new Malclient; + + $userProfile = $jikan->getUserProfile( + new \Jikan\Request\User\UserProfileRequest('nekomata1037') + ); + /* + $userProfile = $jikan->UserProfile('ll-'); + */ + + echo "<pre>"; + var_dump($userProfile->getAnimeStats()); + } + public function getCalendar( $username ) { $helper = new Helper(); echo $helper->getCalendar( $username ); |
