mamadali/yii2-aparat

Aparat Api

Installs: 22

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.02 2021-08-09 07:09 UTC

This package is auto-updated.

Last update: 2024-05-09 13:11:51 UTC


README

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