aparat.com/api
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist mamadali/yii2-aparat "*"
or add
"mamadali/yii2-aparat": "*"
to the require section of your composer.json
file.
login
profile
userBySearch
profilecategories
video
categoryVideos
videoByUser
videoBySearch
videobytag
first add to config.php or if use advanced project add to common/config/main.php
'components' => [
...
'aparat' => [
'class' => 'mamadali\Aparat',
],
...
];
How to get profile info
$res = Yii::$app->aparat->profile([
'username' => 'username',
]);