.. _cb.getRoomOwnerData: ========================= cb.getRoomOwnerData(func) ========================= Get information of room owner. The ``func`` argument should be a function that receives 1 argument itself, ``ownerData``. The ``ownerData`` variable passed to the function has these fields: * success: did the request succeed * errorMessage: error message if success=false * data: * room_status: the current status of the room (``public``, ``private``, ``group``, ``hidden``) * followers: number of followers * show_cam_to_genders: array of genders that owner is broadcasting to [``m`` (male), ``f`` (female), ``t`` (trans), ``c`` (couple)] * fanclub_cost: tokens needed for owner's fan club membership * allow_private_shows: does the owner allow private shows * allow_private_show_recordings: does the owner allow private show recordings * private_show_tokens_per_minute: tokens required per minute for private show * private_show_minimum_minutes: minimum minutes required for private show * spy_on_private_show_tokens_per_minute: tokens required per minute to spy on private show * chat_allowed_by: type of users allowed to chat (``all``, ``tip_recent``, ``tip_anytime``, ``tokens``) Note: ``chat_allowed_by: "tokens"`` are users who have used tokens. Note: This call is executed asynchronously and the code continues to run in the background. Once the information is received, the callback code will be executed with requested data. Example Usage ------------- .. sourcecode:: javascript cb.getRoomOwnerData(ownerData => { if (ownerData['success']) { cb.sendNotice(cb.room_slug + ' has ' + ownerData['data']['followers'] + ' followers!') } }); Example Output -------------- .. sourcecode:: text Notice: testuser has 1000 followers!