From 86cf2068bd5e7f69dbc00f4b1874326456d295a2 Mon Sep 17 00:00:00 2001 From: horus Date: Sun, 19 Apr 2020 18:29:45 +0200 Subject: Stuff with user profile. --- app/Http/Controllers/TestController.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'app') 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 "
";
+		var_dump($userProfile->getAnimeStats());
+	}
+
 	public function getCalendar( $username ) {
 		$helper = new Helper();
 		echo $helper->getCalendar( $username );
-- 
cgit v1.2.3