From f5c6577e2ae7e5addfbc2aa5aecffcd99a43ce94 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Mon, 8 Sep 2014 05:48:59 +0000 Subject: VKontakte: upgrade vk api version to 5.24 part 1 git-svn-id: http://svn.miranda-ng.org/main/trunk@10403 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_proto.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/vk_proto.cpp') diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index e12e19ae5e..63467a2cd4 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -203,6 +203,7 @@ int CVkProto::SendMsg(MCONTACT hContact, int flags, const char *msg) szMsg = mir_utf8encode(msg); ULONG msgId = ::InterlockedIncrement(&m_msgId); + // need rework - change reply format and uid => user_id, type not supported yet AsyncHttpRequest *pReq = new AsyncHttpRequest(this, REQUEST_POST, "/method/messages.send.json", true, &CVkProto::OnSendMessage) << INT_PARAM("type", 0) << INT_PARAM("uid", userID); pReq->AddHeader("Content-Type", "application/x-www-form-urlencoded"); @@ -342,7 +343,8 @@ int CVkProto::UserIsTyping(MCONTACT hContact, int type) Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/messages.setActivity.json", true, &CVkProto::OnReceiveSmth) << INT_PARAM("user_id", userID) - << CHAR_PARAM("type", "typing")); + << CHAR_PARAM("type", "typing") + << VER_API); return 0; } return 1; -- cgit v1.2.3