This code gives the following exception, as far as I understand the error in the parameters I transmit, I will be glad to any advice, (Especially with regards to the correct variation of the post method)

import vk my_app_id = 6923464 user_login = '_________' user_password = '_______________' session = vk.AuthSession(scope='wall', app_id=my_app_id, user_login=user_login, user_password=user_password) vk.api.access_token="195797facc4009b255areghrhtthththh" api = vk.API(session) api.wall.post(owner_id='-90444903',message="Просто текст...!!!!!!!!!!!!!!!!!!!!!!!") 

enter image description here

    2 answers 2

    I advise you to read the error, it says that a version of api is needed, add v="5.92" to the request

      If you look at the syntax of the request to VK API :
      https : //api.vk.com/method/ METHOD_NAME ? PARAMETERS & access_token = ACCESS_TOKEN & v = V

      V (required) - used version of the API. Using this parameter applies some changes in the response format of various methods. Currently the current API version is 5.92. This parameter should be passed with all requests.

      Those. API version must be transmitted in each request. In your case, the request will look like this:

       api.wall.post(owner_id='-90444903',message="Просто текст...!!!!!!!!!!!!!!!!!!!!!!!",v="5.92") 

      But it is also possible to do simpler, so that in every request we don’t explicitly pass the v parameter:

       session = vk.AuthSession(scope='wall', app_id=my_app_id, user_login=user_login, user_password=user_password) api = vk.API(session, v="5.92") 

      Then you can call API methods without specifying v in each request (the default is 5.92).

      ZY And why do you need access_token if you use AuthSession ? He is not needed there, as far as I know.