- Make session:
from UkrainiansApi import Session
ApiSession = Session(userName = 'Login', password = 'Password')
-
addComment. This method adds a comment to the post.
- Example:
ApiSession.addComment(postID = '598dd6830a93f2532cd4b080', text = 'Hello World!')
-
deleteFriends. This method will delete your friends.
- Example:
ApiSession.deleteFriends(userID = 1337)
-
acceptFollower. This method will accept your follower.
- Example:
ApiSession.acceptFollower(userID = 1337)
-
getFollowers. This method will return your followers.
This method will return 20 followers, for get more, set the skip param
- Example:
ApiSession.getFollowers(userID = 1337, skip = 0)
-
getMessages. This method will return your messages.
- Example:
ApiSession.getMessages(userID = 1337)
-
getDialogs. This method will return your dialogs.
- Example:
ApiSession.getDialogs()
-
getFriends. This method will return your friends.
This method will return 20 friends, for get more, set the skip param
- Example:
ApiSession.getFriends(userID = 1337, skip = 0)
-
sendMessage. This method will send the message.
- Example:
ApiSession.sendMessage(userID = 1337, text = 'hello')
-
searchUsers. This method will return found users.
- Example:
ApiSession.searchUsers(sex = 0, city = 0, country = 0, online = 'false', relationship = 0, maxage = 100, minage = 0, skip = 0, school = 0, universityId = 0, top = 40)
-
inviteAllFriendsInGroup. This method will added all your friends into the group.
- Example:
ApiSession.inviteAllFriendsInGroup(groupID = 1337, skip = 0)
-
uploadImage. This method will upload image on Ukrainians server. If url = True, set url to image
- Example:
ApiSession.uploadImage(path = 'path', url = False)
-
makeLike.
- Example:
ApiSession.makeLike(postID = 1337)
-
makeShare.
- Example:
ApiSession.makeShare(postID = 1337, text = 'hello')
-
wallPost.
- Example:
ApiSession.wallPost(ID = 1337, text = 'hello')