Skip to content

MamadAliGit/yii2-aparat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aparat Api

aparat.com/api

Installation

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.

Method list usable

login
profile
userBySearch
profilecategories
video
categoryVideos
videoByUser
videoBySearch
videobytag

Usage

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',
       ]);