PHP code example of oleg-chulakov-studio / yii2-okapi

1. Go to this page and download the library: Download oleg-chulakov-studio/yii2-okapi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

oleg-chulakov-studio / yii2-okapi example snippets



  'components'  =>  [
        'OkApi' => [
            'class' => \OlegChulakovStudio\okapi\YiiOkComponent::className(),
            'applicationId' => '',
            'applicationKey' => '',
            'applicationSecretKey' => '',
            'accessToken' => ''
        ],
  ]
 


$responseData = Yii::$app->YiiVk->request('search.tagContents', [
     'count' => 25,
     'query' => $this->tagSearch,
     'filter' => '{ "types" : ["USER_TOPIC", "USER_PHOTO","GROUP_PHOTO", "GROUP_TOPIC"]}',
     'fields' => 'group_photo.ID,group_photo.ALBUM_ID,group_photo.GROUP_ID,group_photo.PIC1024MAX',
 ]);