Getting user's activity

For general discussion of the Poker Mavens software

Getting user's activity

Postby Dornica » Wed Oct 10, 2018 4:43 am

Hello,
I apologize if I ask a lot of questions and if they sound obvious or stupid.

I'm trying to develop a CMS for my website which uses PM as it's game engine and I don't have any experience regarding PM.
My question is: how can I get user activity i.e last couple of hand played or last couple of hands won or last couple of rings sat in etc. ?
I saw on the API documentation you can get the ring which the player is currently sitting in but nothing regarding what I'm asking for.
Thank you in advance.
-Milad
Dornica
 
Posts: 7
Joined: Tue Oct 02, 2018 4:23 am

Re: Getting user's activity

Postby Kent Briggs » Wed Oct 10, 2018 9:29 am

Dornica wrote:My question is: how can I get user activity i.e last couple of hand played or last couple of hands won or last couple of rings sat in etc. ?


Use the LogsHandHistory command in the API to retrieve table/hand activity. You'll probably also want to use the Callback Event system (final group on System tab) and monitor the "Hand" events. This will call your code (like a reverse API) every time a hand is played.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm

Re: Getting user's activity

Postby Dornica » Thu Oct 11, 2018 1:39 am

Kent Briggs wrote:
Dornica wrote:My question is: how can I get user activity i.e last couple of hand played or last couple of hands won or last couple of rings sat in etc. ?


Use the LogsHandHistory command in the API to retrieve table/hand activity. You'll probably also want to use the Callback Event system (final group on System tab) and monitor the "Hand" events. This will call your code (like a reverse API) every time a hand is played.

Thank you for your reply.
Am I able to filter it by a specific player?
Dornica
 
Posts: 7
Joined: Tue Oct 02, 2018 4:23 am

Re: Getting user's activity

Postby Kent Briggs » Thu Oct 11, 2018 9:32 am

Dornica wrote:Am I able to filter it by a specific player?


The hand history shows every action at the table in chronological order. You'll need to parse that yourself to pull out data for individual players.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm


Return to General

Who is online

Users browsing this forum: No registered users and 8 guests

cron