/show

Logging into, out of and maintaining a show requires the use of the following messages:

1. Login Message

This message should be sent as soon as a customer indicates that they would like to start a show. If successful, this method causes the API to lock the performer's room for a small period of time, allowing you to transition the customer into a "show" room, if applicable. Once the customer has been transitioned, you will need to send the Ready Message.

SWIPE TO SCROLL
POST /show?key=[KEY] HTTP/1.1
    Host: [API]:80
    
    function=showLogin
      &performerId=[id]
      &customerId=[id]
      &nickname=[nickname]
      &showType=[SHOWTYPE]
      &showRate=[cpm]
    

NOTE: The post variables should all be on 1 line. We have separated them here for visual clarity only.

Parameters

SWIPE TO SCROLL
Name Required Type Description
key Yes string Supplied by VS. Please ask us for your key.
function Yes string The function you wish to call.
performerId Yes integer The id of the performer who will be taken into a show.
customerId Yes integer The id of the customer that is doing the show login.
nickname Yes string The nickname of the customer that is doing the show login.
showType Yes string The show type that you have shown the customer and that they believe they will be engaging in.
showRate Yes integer This is the cost per minute for the [SHOWTYPE] in question.

Once this request is received the API will verify that all information is valid and will return true or false based on whether the user can enter the show.

Example Response

SWIPE TO SCROLL
HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: [int]
    
    {
        success: true | false
        message: [string]
    }

Response Parameters

SWIPE TO SCROLL
Name Description
success Whether or not your request was allowed.
message An error message if success is false.

2. Ready Message

This message should be sent as soon as the customer has been fully transitioned into a paying show room environment. That may mean different things for your users than it means to us, so feel free to contact your account representative if you need any further clarity on this state. When a customer wishes to leave the show you will need to send the Logout message.

SWIPE TO SCROLL
POST /show?key=[KEY] HTTP/1.1
Host: [API]:80

function=showReady
  &performerId=[id]
  &customerId=[id]

NOTE: The post variables should all be on 1 line. We have separated them here for visual clarity only.

Parameters

SWIPE TO SCROLL
Name Required Type Description
key Yes string Supplied by VS. Please ask us for your key.
function Yes string The function you wish to call.
performerId Yes integer The id of the performer who will be taken into a show.
customerId Yes integer The id of the customer that has joined the show.

Once this request is received the API will verify that all information is valid and will return true or false based on whether the user can enter the show.

Example Response

SWIPE TO SCROLL
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: [int]

{
    success: true | false
    message: [string],
    video: {
        flash: [
            {
                connectUrl: [url],
                streamName: [name]
            },
            {
                connectUrl: [url],
                streamName: [name]
            }
        ],
        hls: [
            [url],
            [url]
        ]
    }
}

Response Parameters

SWIPE TO SCROLL
Name Description
success Whether or not your request was allowed.
message An error message if success is false.
video Upon success, new video data will be delivered that is specific to the customer that is entering the show.

3. Logout Message

You will send this message as soon as the customer decides to end the show. If the user has disconnected on your end, you should also send this message to cleanly shut down the show. If you fail to do so, some extra credits may be deducted from the customer's account while it is determined that they have disconnected.

SWIPE TO SCROLL
POST /show?key=[KEY] HTTP/1.1
Host: [API]:80

function=showLogout
  &performerId=[id]
  &customerId=[id]

NOTE: The post variables should all be on 1 line. We have separated them here for visual clarity only.

Parameters

SWIPE TO SCROLL
Name Required Type Description
key Yes string Supplied by VS. Please ask us for your key.
function Yes string The function you wish to call.
performerId Yes integer The id of the performer who will be taken into a show.
customerId Yes integer The id of the customer that is doing the show logout.

Once this request is received the API will verify that all information is valid and will return true or false based on whether the user can enter the show.

Example Response

SWIPE TO SCROLL
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: [int]

{
    success: true | false
    message: [string]
}

Response Parameters

SWIPE TO SCROLL
Name Description
success Whether or not your request was allowed.
message An error message if success is false.

Copyright © 1996 - 2025 4AF - VS Media, Inc. All Rights Reserved | Terms & Conditions | Cookies Policy | Privacy Policy18 U.S.C. 2257 Record-Keeping Requirements Compliance Statement