API.md
January 9, 2013 ยท View on GitHub
API SPEC
Methods
AppUpdate_checkUpdateAuth_closeSessionAuth_getSessionInfoBlock_blockUsersBlock_getBlockedUsersBlock_unblockUsersChat_getChatUnreadCountsChat_getLatestChatMessagesInConversationChat_uploadPhotoFeed_getCurrentShareFeed_getProfileFeedByTimeFeed_getShareFeedFeed_getSharedEventFeed_updateEventCountersByTimeFriendRequest_acceptFriendRequestsFriendRequest_addContactsFriendRequest_cancelFriendRequestsFriendRequest_downgradeFriendsToContactsFriendRequest_ignoreFriendRequestsFriendRequest_sendFriendRequestsImporter_checkPhoneBookDifferencesImporter_findUserByEmailImporter_findUserByPhoneImporter_getInviteToMessengerListImporter_getPhoneBookStateImporter_setPhoneBookSignatureImporter_syncMessengerUserListImporter_updateContactsNotification_getContentReactionsNotification_getCountsNotification_getNewPeopleNotification_markContentReactionsAsSeenNotification_markNewPeopleAsSeenProfile_getAlbumPhotosProfile_getProfileInfoPush_subscribeToPushPush_unsubscribeFromPushRegistration_challengePhoneNumberRegistration_createNewAccountRegistration_getAvailableCountryCodesRegistration_sendRecoverPasswordEmailRegistration_verifyPhoneNumberSettings_openShare_dislikeShare_getCommentsShare_getLikersShare_likeShare_postCommentShare_postShareEventShare_setUserAvatarUser_getRelationshipDataUser_getUsersDataUser_updateRelationshipData
AppUpdate_checkUpdate
Params
userAgent- Type: String
version- Type: String
Auth_closeSession
Params
installationId- Type: String
Auth_getSessionInfo
Params
installationId- Type: String
Block_blockUsers
Params
ids- Type: List[String]
Block_getBlockedUsers
Block_unblockUsers
Params
ids- Type: List[String]
Chat_getChatUnreadCounts
Params
includeOpen- Type: boolean
- Optional
Chat_getLatestChatMessagesInConversation
Params
conversationId- Type: String
limit- Type: int
xmppTimestamp- Type: String
allPending- Type: boolean
Chat_uploadPhoto
Params
conversationId- Type: String
Feed_getCurrentShare
Feed_getProfileFeedByTime
Params
userId- Type: String
before- Type: long
max- Type: int
Feed_getShareFeed
Params
max- Type: String
- Value: 20
after- Type: long
- Optional
- Value: -1L
Feed_getSharedEvent
Params
shareId- Type: String
Feed_updateEventCountersByTime
Params
ranges- Type: List[List[long]]
FriendRequest_acceptFriendRequests
Params
ids- Type: List[String]
FriendRequest_addContacts
Params
ids- Type: List[String]
FriendRequest_cancelFriendRequests
Params
ids- Type: List[String]
FriendRequest_downgradeFriendsToContacts
Params
ids- Type: List[String]
FriendRequest_ignoreFriendRequests
Params
ids- Type: List[String]
FriendRequest_sendFriendRequests
Params
ids- Type: List[String]
Importer_checkPhoneBookDifferences
Params
installationId- Type: String
contactSignatures- Structure: List[{'luid': String, 'signature': String}]
chunkOffset- Type: int
numChunks- Type: int
Importer_findUserByEmail
Params
email- Type: String
Importer_findUserByPhone
Params
msisdn- Type: String
Importer_getInviteToMessengerList
Params
installationId- Type: String
Importer_getPhoneBookState
Params
installationId- Type: String
signature- Type: String
Importer_setPhoneBookSignature
Params
installationId- Type: String
signature- Type: String
Importer_syncMessengerUserList
Params
installationId- Type: String
returnAdded- Type: boolean
explicit- Type: boolean
Importer_updateContacts
Params
installationId- Type: String
contacts- Structure: [{'data': { 'phones': [{'number': String, 'label': String, 'type': String}], 'emails': [{'mail': String, 'label': String, 'type': String}]}, 'name': String, 'surname': String, 'fullnameNormalized': String, 'avatarUri': Uri, 'version': long, 'id': long}]
deviceInfo- Structure: {'name': String, 'make': String, 'model': String}
Notes
deviceInfo- 'name' = android.os.Build.PRODUCT
- 'make' = android.os.Build.MANUFACTURER
- 'model' = android.os.Build.MODEL
Notification_getContentReactions
Params
markAsSeen- Type: boolean
Notification_getCounts
Notification_getNewPeople
Params
markAsSeen- Type: boolean
Notification_markContentReactionsAsSeen
Params
timestamp- Type: long
Notification_markNewPeopleAsSeen
Params
timestamp- Type: long
Profile_getAlbumPhotos
Params
userId- Type: String
page- Type: int
pageSize- Type: int
Profile_getProfileInfo
Params
userId- Type: String
Push_subscribeToPush
Params
pushToken- Type: String
installationId- Type: String
Push_unsubscribeFromPush
Params
installationId- Type: String
Registration_challengePhoneNumber
Params
msisdn- Type: String
Registration_createNewAccount
Params
email- Type: String
name- Type: String
last- Type: String
gender- Type: int
installationId- Type: String
deviceFamily- Type: String
Registration_getAvailableCountryCodes
Registration_sendRecoverPasswordEmail
Params
email- Type: String
Registration_verifyPhoneNumber
Params
msisdn- Type: String
handshake- Type: String
timestamp- Type: long
seed- Type: String
Settings_open
Params
deviceFamily- Type: String
- Value: 'MDI3MDFmZjU4MGExNWM0YmEyYjA5MzRkODlmMjg0MTU6MC4yMjk5ODcwMCAxMzI0NDg5NjY0'
installationId- Type: String
userAgent- Type: String
version- Type: String
Share_dislike
Params
shareId- Type: String
Share_getComments
Params
shareId- Type: String
page- Type: int
pageSize- Type: int
Share_getLikers
Params
shareId- Type: String
page- Type: int
pageSize- Type: int
Share_like
Params
shareId- Type: String
Share_postComment
Params
shareId- Type: String
body- Type: String
Share_postShareEvent
Params
body- Type: String
photoKey- Type: String
Share_setUserAvatar
Params
x- Type: int
y- Type: int
User_getRelationshipData
Params
relationship- Type: String
page- Type: int
pageSize- Type: int
User_getUsersData
Params
ids- Type: List[String]
User_updateRelationshipData
Params
friends- Type: List[String]
contacts- Type: List[String]
weak- Type: List[String]
timestamp- Type: long