V
V
Vlad2016-04-29 20:00:55
In contact with
Vlad, 2016-04-29 20:00:55

Can the Contact Api send messages?

I do not understand Api, but tell me if it is possible to write a php script that:
1. will be able to send a message from my personal account to the specified contact users. Is it possible to do this without my personal presence at the computer, just log in using the prescribed data and send
2. Send a message to the specified contact users after authorization in the script through your VKontakte account
3. Get a list of messages in my personal also without my personal presence at the computer, just check mail using the specified username and password

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
VZVZ, 2016-04-29
@VZVZ

Why exactly PHP? Why does everyone want to work with VK in PHP? It is more likely to work with him on some C #. Even if a cloud is required, there is also a VPS as an option.
At least 1 time the application will need to allow access to VK through your account.
Authorization by login and password is not supported in the API, it needs to work with the back-end of the site itself, this is completely different. A sniffer will be needed, they will track requests coming from the browser and imitate them. Also, it’s worth digging their Android application with a sniffer, because there is a login and password, just like on the site.
So are you talking about mail or about a personal VK?

E
entermix, 2016-04-29
@entermix

Everything that the API can do is written here: vk.com/dev/methods
See the section: "Messages"
With PHP it will not work (if you have an application of the "Site" type) because these methods are available only to Standalone applications.

A
Alexandra Vorontsova, 2016-05-01
@alexandret

1. will be able to send a message from my personal account to the specified contact users. Is it possible to do this without my personal presence at the computer, just log in using the prescribed data and send

Yes, it can, if the user allows you to send messages with the same access rights as you. (friends of friends/friends/arbitrary VK user). Now many have a limit and non-friends cannot send messages.
I don't understand how this question differs from the first one.
No problem. But still, in VK it is customary to use not a login + password, but an access_token. As far as I know, all libraries that were able to work with login + password bundles do not work with this method now.
Getting a token is a simple matter, and you can make it so that you practically don’t need to update it (only when you change your password)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question