prawn-cake / vk-requests

vk.com requests for humans. API library for vk.com
MIT License
158 stars 22 forks source link

Error in access permissions #6

Closed stalkash closed 8 years ago

stalkash commented 8 years ago

The permit is only for the last item in the list "scope" Example: "api = vk_requests.create_api(..., scope=[ 'messages','wall'], api_version='5.45') Requests to api.message.* fail access like this:

_raise vk_error vk_requests.exceptions.VkAPIError: error_code=15, message='Access denied: no access to call this method', request_params={'method': 'messages.getHistory', 'oauth': '1', 'user_id': '{myid}', 'offset': '0', 'count': '200'}

If I change to scope=['wall, 'message'] : it all works fine, but api.wall.* failed.

prawn-cake commented 8 years ago

Confirm the problem. It will be fixed soon As a workaround you can pass scope as a string, like scope='messages, wall', but since next release it will work as expected. Thanks for reporting

prawn-cake commented 8 years ago

Fixed in v0.9.2