Activity Service

This is the API for querying for session counts and session and participant details. https://www.glance.net/services/activityservice.asmx

The WSDL is here: https://www.glance.net/services/activityservice.asmx?WSDL

Some operations are for use with specific third-party integrations and are not documented here.

Many Activity Service operations return session records. Here is a description of the output values:

Value Description
Session type
Session type is one of "C" co-browse or "G" (Glance) screen sharing.
Session status
Session status is one of:
  • W: Waiting, other side has not joined yet
  • A: Active, both sides have joined (host/guest or agent/visitor)
  • C: Completed (session has ended)
  • X: Session ended but without a clean close (may have dropped)
  • T: Timed out. Session was Waiting but other side did not join within timeout
  • Q: Quit. Session was Waiting, but was ended by host or visitor before other side joined
Width and Height
Initial width and height of the screen are returned for a screen sharing session. This can change during a session if the display side changes their monitor or resolution. These values are 0 for co-browsing sessions.
Duration
Session duration is in seconds, it is 0 for active sessions.
Guest Type
Guest type is one of:
  • Agent: agent (Glance user) in co-browse session
  • Visitor: website visitor (customer) in Cobrowse session
  • Host: Glance user who has started a screen sharing session
  • Guest: Guest of a screen sharing session
Guest Status
Guest status is one of:
  • J: Joining (guest is in process of connecting but has not yet connected)
  • A: Active (guest connected)
  • C: Completed (guest has left)
  • X: Guest left session, but without clean close (may have dropped) There are a few other more rarely seen values.
Guest Duration
Guest duration is in seconds, 0 for active guests.
Guest Information
Guest information may include name, email, phone if supplied. These values can be requested from the guest or passed on a URL used to join the session. Guest information may include a location node with city, region (state/province), countryCode. This is derived from the IP address if available.

Sample Session Records (XML)

<session>
    <id>12423680</id>
    <type>C</type>
    <status>C</status>
    <startTime>2016-02-23T22:17:51Z</startTime>
    <key>6684</key>
    <width>0</width>
    <height>0</height>
    <duration>147</duration>
    <isReverse>false</isReverse>
    <guests>
        <guest>
            <type>visitor</type>
            <status>C</status>
            <startTime>2016-02-23T22:17:22Z</startTime>
            <duration>147</duration>
            <ip>108.49.96.66</ip>
            <clientVersion>iOs 3</clientVersion>
            <protocolVersion>3</protocolVersion>
            <location>
                <city>Newburyport</city>
                <region>MA</region>
                <countryCode>US</countryCode>
            </location>
        </guest>
        <guest>
            <type>agent</type>
            <status>C</status>
            <startTime>2016-02-23T22:17:51Z</startTime>
            <duration>118</duration>
            <ip>66.78.234.123</ip>
            <location>
                 <city>Alexandria</city>
                 <region>VA</region>
                 <countryCode>US</countryCode>
            </location>
        </guest>
    </guests>
</session>

<session>
        <id>12442276</id>
        <type>G</type>
        <status>C</status>
        <startTime>2016-02-24T21:12:09Z</startTime>
        <key>7734</key>
        <width>1920</width>
        <height>1080</height>
        <duration>259</duration>
        <isReverse>false</isReverse>
        <guests>
            <guest>
                <type>host</type>
                <status>C</status>
                <startTime>2016-02-24T21:11:42Z</startTime>
                <duration>259</duration>
                <ip>108.49.96.66</ip>
               <location>
                   <city>Newburyport</city>
                   <region>MA</region>
                   <countryCode>US</countryCode>
              </location>
        </guest>
        <guest>
            <type>guest</type>
            <status>C</status>
            <startTime>2016-02-24T21:12:09Z</startTime>
            <duration>244</duration>
            <ip>66.78.234.123</ip>
            <location>
                <city>Alexandria</city>
                <region>VA</region>
                <countryCode>US</countryCode>
            </location>
            <name>Greta Guest</name>
            <email>sales@glance.net</email>
            <phone>781-646-8505</phone>
            <error>Session ended by other side</error>
        </guest>
    </guests>
</session>

JSON Requests

Calls may also be made passing JSON parameters and returning JSON results.

In order to make a JSON format call, make a POST request with a "Content-Type" header with MIME type "application/json". The parameters are passed in a JSON format object in the post data.

Such a request can be made with curl like this:

curl --data '{partnerId:8757, apiKey:"secret123test456", startRange:"2015-09-01", endRange:"2015-09-02", sessionKey:"", nResults:100, nextId:0}' \
-H "Content- Type:application/json" " \
https://www.glance.net/services/activityservice.asmx/PartnerCompletedSessions"

Sample JSON Results

<session>
    <id>12423680</id>
    <type>C</type>
    <status>C</status>
    <startTime>2016-02-23T22:17:51Z</startTime>
    <key>6684</key>
    <width>0</width>
    <height>0</height>
    <duration>147</duration>
    <isReverse>false</isReverse>
    <guests>
        <guest>
            <type>visitor</type>
            <status>C</status>
            <startTime>2016-02-23T22:17:22Z</startTime>
            <duration>147</duration>
            <ip>108.49.96.66</ip>
            <clientVersion>iOs 3</clientVersion>
            <protocolVersion>3</protocolVersion>
            <location>
                <city>Newburyport</city>
                <region>MA</region>
                <countryCode>US</countryCode>
            </location>
        </guest>
        <guest>
            <type>agent</type>
            <status>C</status>
            <startTime>2016-02-23T22:17:51Z</startTime>
            <duration>118</duration>
            <ip>66.78.234.123</ip>
            <location>
                 <city>Alexandria</city>
                 <region>VA</region>
                 <countryCode>US</countryCode>
            </location>
        </guest>
    </guests>
</session>

<session>
        <id>12442276</id>
        <type>G</type>
        <status>C</status>
        <startTime>2016-02-24T21:12:09Z</startTime>
        <key>7734</key>
        <width>1920</width>
        <height>1080</height>
        <duration>259</duration>
        <isReverse>false</isReverse>
        <guests>
            <guest>
                <type>host</type>
                <status>C</status>
                <startTime>2016-02-24T21:11:42Z</startTime>
                <duration>259</duration>
                <ip>108.49.96.66</ip>
                <location>
                   <city>Newburyport</city>
                   <region>MA</region>
                   <countryCode>US</countryCode>
              </location>
        </guest>
        <guest>
            <type>guest</type>
            <status>C</status>
            <startTime>2016-02-24T21:12:09Z</startTime>
            <duration>244</duration>
            <ip>66.78.234.123</ip>
            <location>
                <city>Alexandria</city>
                <region>VA</region>
                <countryCode>US</countryCode>
            </location>
            <name>Greta Guest</name>
            <email>sales@glance.net</email>
            <phone>781-646-8505</phone>
            <error>Session ended by other side</error>
        </guest>
    </guests>
</session>

By continuing to use the site, you agree to the use of cookies. Learn More