pppoker.py
Mobile-API for PPPoker automate and interact with the PPPoker mobile poker platform including authentication, profiles, forum, and game videos.
from pppoker import PPPoker
pppoker = PPPoker (imei = "your_device_imei" )
pppoker .login (username = "your_username" , password = "your_password" )
PPPoker (
imei = "your_imei" ,
app_id = "globle" ,
app_type = 1 ,
language = "ru" ,
platform = "android" ,
region = 2 ,
country = "RU"
)
Method
Description
login(username, password, login_type)
Sign in with credentials
login_as_guest()
Sign in as a guest
register(username, password)
Create a new account
get_reset_code(email, valid_type)
Request email verification/reset code
get_email_code(uid)
Request device verification code
verify_email_code(uid, code)
Submit device verification code
link_email(email, verification_code)
Link an email to your account
unlink_email(email, password)
Unlink email from your account
change_password(new_password, old_password)
Change account password
Device verification (code -15)
result = pppoker .login ("username" , "password" )
if result .get ("code" ) == - 15 :
uid = result ["uid" ]
pppoker .get_email_code (uid )
code = input ("Code: " )
pppoker .verify_email_code (uid , code )
imei must match the one registered in your client.
Method
Description
edit_profile(country)
Update profile country
get_portraits()
Get available profile portraits
change_portrait(icon_name)
Set a profile portrait
get_user_invite_code()
Get your invite code
get_user_tasks()
Get new user tasks
check_username(username)
Check if a username is available
get_ip_address()
Get your current IP address
Method
Description
get_forum_featured(recommend_id)
Get featured forum posts
get_forum_hot(tag_id)
Get hot forum posts
get_forum_latest(post_id, tag_id)
Get latest forum posts
get_forum_mine(post_id, tag_id)
Get your own forum posts
create_forum_post(title, tag_name, invited_user_data)
Create a new forum post
Method
Description
get_user_game_videos(user_id, post_id)
Get game videos by a user
get_game_video_info(share_key, post_id)
Get info about a game video
play_game_video(share_key, position)
Mark a game video as played
comment_game_video(topic_id, content)
Comment on a game video
like_game_video(topic_id)
Like a game video
like_comment(topic_id, comment_id)
Like a comment on a game video
Method
Description
get_unread_notifications()
Get unread notification count
get_comment_notifications(message_id)
Get comment notifications
get_system_notifications(message_id)
Get system notifications
Method
Description
get_client_version()
Get latest client version info
get_hand_review_version()
Get hand review version
get_hand_review()
Get hand review dictionary