summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhorus2020-04-19 18:29:45 +0200
committerhorus2020-04-19 18:29:45 +0200
commit86cf2068bd5e7f69dbc00f4b1874326456d295a2 (patch)
tree78abe413f7bbb8b71628f6760d1da5570baf94bb /app
parenta625252b449de4ffa774fd4907746930efaa36ce (diff)
downloadsenpai-86cf2068bd5e7f69dbc00f4b1874326456d295a2.tar.gz
Stuff with user profile.
Diffstat (limited to 'app')
-rw-r--r--app/Http/Controllers/TestController.php17
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 );