yii2-authclient icon indicating copy to clipboard operation
yii2-authclient copied to clipboard

VKontakte applyAccessTokenToRequest problem

Open aleksanderd opened this issue 6 years ago • 0 comments

What steps will reproduce the problem?

Call any of VK-API method with parameter user_ids, for example: https://vk.com/dev/users.get

What's expected?

Usual VK-API result for given ids.

What do you get instead?

The user_ids parameter reassigned to null at VKontakte::applyAccessTokenToRequest method:
https://github.com/yiisoft/yii2-authclient/blob/36d98aed10b171a28a5fb30b626be6b433f86063/src/clients/VKontakte.php#L115

Since user_ids is null, VK returns an error.

Additional info

Q A
Yii version 2.0.15.1 March 21, 2018
Yii Auth Client version 2.1.7 September 20, 2018
Yii HTTP Client version 2.0.7 September 24, 2018
PHP version PHP 7.0.33-0+deb9u1
Operating system Debian 9

aleksanderd avatar Dec 17 '18 15:12 aleksanderd