diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-08 05:48:59 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-08 05:48:59 +0000 |
commit | f5c6577e2ae7e5addfbc2aa5aecffcd99a43ce94 (patch) | |
tree | cce9b62b6a1e356263364d9220364e86913b2d1e /protocols/VKontakte/src/vk_proto.cpp | |
parent | dd7054ccaf6ffee1104c231636fa6c8e23b497d5 (diff) |
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
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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;
|