Activity Service Methods

A comprehensive reference of Legacy Activity Service API endpoints, including input parameters and sample XML responses for querying session activity.

PartnerSessionCounts

https://www.glance.net/services/activityservice.asmx?op=PartnerSessionCounts

This method returns counts of numbers of sessions started within the given date range, broken down by session type and status.

Input Parameters

ParameterDescription
partnerIdYour Glance group id. This is assigned by Glance.
apiKeyThe unique identifier used to authenticate. Administrators can set, reset, and view API keys from the My Account area under Settings.
typeParameter must be supplied, but value is optional. "C" Cobrowse, "G" Screen Share, or "V" Video (blank returns all).
status"A" Active or "C" Completed sessions.
startRange
endRange
Date range of session starting times.

For today's sessions, set startRange to today and endRange to tomorrow.

The maximum range is 31 days.

Sample Results

XML
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfSessionCount
    xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)"
    xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)"
    xmlns="[http://www.glancenetworks.com/services](http://www.glancenetworks.com/services)">
    <sessionCount>
        <type>C</type>
        <status>C</status>
        <count>141</count>
        <averageDuration>748</averageDuration>
    </sessionCount>
    <sessionCount>
        <type>C</type>
        <status>Q</status>
        <count>2</count>
    <averageDuration>106</averageDuration>
    </sessionCount>
    <sessionCount>
        <type>C</type>
        <status>T</status>
        <count>24</count>
        <averageDuration>127</averageDuration>
    </sessionCount>
    <sessionCount>
        <type>C</type>
        <status>X</status>
        <count>2</count>
        <averageDuration>905</averageDuration>
    </sessionCount>
    <sessionCount>
        <type>G</type>
        <status>C</status>
        <count>123</count>
        <averageDuration>619</averageDuration>
    </sessionCount>
</ArrayOfSessionCount>

PartnerSessionCountsEnding

https://www.glance.net/services/activityservice.asmx?op=PartnerSessionCountsEnding

This method returns counts of numbers of sessions ended within the given date/time range, broken down by session type and status.

Input Parameters

ParameterDescription
partnerIdYour Glance group id. This is assigned by Glance.
apiKeyThe unique identifier used to authenticate. Administrators can set, reset, and view API keys from the My Account area under Settings.
typeParameter must be supplied, but value is optional. "C" Cobrowse, "G" Screen Share, or "V" Video (blank returns all).
startRange
endRange
Date range of session starting times.

For today's sessions, set startRange to today and endRange to tomorrow.

The maximum range is 31 days.

Sample Results

XML
<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfSessionCount xmlns="[http://www.glancenetworks.com/services](http://www.glancenetworks.com/services)" xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)">
   <sessionCount>
      <type>C</type>
      <status>C</status>
      <count>2</count>
      <averageDuration>40</averageDuration>
   </sessionCount>
   <sessionCount>
      <type>C</type>
      <status>Q</status>
      <count>3</count>
      <averageDuration>8</averageDuration>
   </sessionCount>
   <sessionCount>
      <type>C</type>
      <status>T</status>
      <count>2</count>
      <averageDuration>125</averageDuration>
   </sessionCount>
</ArrayOfSessionCount>

PartnerActiveSessions

https://www.glance.net/services/activityservice.asmx?op=PartnerActiveSessions

This method returns essentially the list in the Glance Account Activity tab: an array of all currently Active or Waiting sessions for all users in your Glance Group (organization). It does not return all session fields or detail guest information, but that can be retrieved for a specific session with PartnerUserSessions (see below).

An Active (A) session has at least one each of Agent/Host and Visitor/Guest connected. A Waiting (W) session has been started and is still waiting for the other party to join.

Input Parameters

ParameterDescription
partnerIdYour Glance group id. This is assigned by Glance.
apiKeyThe unique identifier used to authenticate. Administrators can set, reset, and view API keys from the My Account area under Settings.

Sample Results

XML
<?xml version="1.0" encoding="UTF-8"?>
<ArrayOfActiveSession xmlns="[http://www.glancenetworks.com/services](http://www.glancenetworks.com/services)" xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)">
   <activeSession>
      <id>61943691</id>
      <type>C</type>
      <status>A</status>
      <startTime>2020-03-31T20:13:58Z</startTime>
      <key>1281</key>
      <isReverse>false</isReverse>
      <userName>demo.glance.net</userName>
      <firstName>Jack</firstName>
      <lastName>Demo</lastName>
      <partnerUserId>JDemo</partnerUserId>
      <nguests>2</nguests>
   </activeSession>
</ArrayOfActiveSession>

PartnerCompletedSessions

https://www.glance.net/services/activityservice.asmx?op=PartnerCompletedSessions

This method returns a list of completed sessions started within the date/time range, grouped by user.

Input Parameters

ParameterDescription
partnerIdYour Glance group id. This is assigned by Glance.
apiKeyThe unique identifier used to authenticate. Administrators can set, reset, and view API keys from the My Account area under Settings.
startRange
endRange
Date range of session starting times.

For today's sessions, set startRange to today and endRange to tomorrow.

The maximum range is 31 days.
sessionKeyParameter must be supplied, but value is optional. If supplied, then only sessions with that key are returned.
nResultsNumber of sessions to return in this call, must be between 1 and 1000.
nextIdNext starting id for pagination of results. For the first (or a single) call pass 0. On subsequent calls, pass the value returned by the previous call.

Sample Results

XML
<?xml version="1.0" encoding="UTF-8"?>
<groupSessions xmlns="[http://www.glancenetworks.com/services](http://www.glancenetworks.com/services)" xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)">
   <nextId>61943153</nextId>
   <users>
      <userSessions>
         <userName>demo.glance.net</userName>
         <partnerUserId>JDemo</partnerUserId>
         <validUser>true</validUser>
         <sessions>
            <session>
               <id>61874627</id>
               <type>C</type>
               <status>C</status>
               <startTime>2020-03-31T12:43:12Z</startTime>
               <key>example</key>
               <width>0</width>
               <height>0</height>
               <duration>7</duration>
               <kbytes>33</kbytes>
               <isReverse>false</isReverse>
               <guests>
                  <guest>
                     <type>visitor</type>
                     <status>C</status>
                     <startTime>2020-03-31T12:43:09Z</startTime>
                     <duration>7</duration>
                     <kbytes>33</kbytes>
                     <ip>12.345.678.910</ip>
                     <location>
                        <city>Boston</city>
                        <region>MA</region>
                        <countryCode>US</countryCode>
                     </location>
                  </guest>
                  <guest>
                     <type>agent</type>
                     <status>C</status>
                     <startTime>2020-03-31T12:43:12Z</startTime>
                     <duration>4</duration>
                     <kbytes>23</kbytes>
                     <ip>12.345.678.910</ip>
                     <location>
                        <city>Boston</city>
                        <region>MA</region>
                        <countryCode>US</countryCode>
                     </location>
                  </guest>
               </guests>
            </session>
         </sessions>
      </userSessions>
   </users>
</groupSessions>

PartnerCompletedSessionsEnding

https://www.glance.net/services/activityservice.asmx?op=PartnerCompletedSessionsEnding

This method is the same as PartnerCompletedSessions except it returns a list of completed sessions ended within the date/time range.

Input Parameters

ParameterDescription
partnerIdYour Glance group id. This is assigned by Glance.
apiKeyThe unique identifier used to authenticate. Administrators can set, reset, and view API keys from the My Account area under Settings.
startRange
endRange
Date range of session starting times.

For today's sessions, set startRange to today and endRange to tomorrow.

The maximum range is 31 days.
sessionKeyParameter must be supplied, but value is optional. If supplied, then only sessions with that key are returned.
nResultsNumber of sessions to return in this call, must be between 1 and 1000.
nextIdNext starting id for pagination of results. For the first (or a single) call pass 0. On subsequent calls, pass the value returned by the previous call.

Sample Results

XML
<?xml version="1.0" encoding="UTF-8"?>
<groupSessions xmlns="[http://www.glancenetworks.com/services](http://www.glancenetworks.com/services)" xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)">
   <nextId>61943153</nextId>
   <users>
      <userSessions>
         <userName>demo.glance.net</userName>
         <partnerUserId>JDemo</partnerUserId>
         <validUser>true</validUser>
         <sessions>
            <session>
               <id>61874627</id>
               <type>C</type>
               <status>C</status>
               <startTime>2020-03-31T12:43:12Z</startTime>
               <key>example</key>
               <width>0</width>
               <height>0</height>
               <duration>7</duration>
               <kbytes>33</kbytes>
               <isReverse>false</isReverse>
               <guests>
                  <guest>
                     <type>visitor</type>
                     <status>C</status>
                     <startTime>2020-03-31T12:43:09Z</startTime>
                     <duration>7</duration>
                     <kbytes>33</kbytes>
                     <ip>12.345.678.910</ip>
                     <location>
                        <city>Boston</city>
                        <region>MA</region>
                        <countryCode>US</countryCode>
                     </location>
                  </guest>
                  <guest>
                     <type>agent</type>
                     <status>C</status>
                     <startTime>2020-03-31T12:43:12Z</startTime>
                     <duration>4</duration>
                     <kbytes>23</kbytes>
                     <ip>12.345.678.910</ip>
                     <location>
                        <city>Boston</city>
                        <region>MA</region>
                        <countryCode>US</countryCode>
                     </location>
                  </guest>
               </guests>
            </session>
         </sessions>
      </userSessions>
   </users>
</groupSessions>

PartnerUserSessions

https://www.glance.net/services/activityservice.asmx?op=PartnerUserSessions

This method returns a list of sessions for a particular user.

Input Parameters

ParameterDescription
partnerIdYour Glance group id. This is assigned by Glance.
apiKeyThe unique identifier used to authenticate. Administrators can set, reset, and view API keys from the My Account area under Settings.
partnerUserIdUser whose session(s) are retrieved.
startRange
endRange
Date range of session starting times.

For today's sessions, set startRange to today and endRange to tomorrow.

The maximum range is 31 days.
statusMust be either "A" to return Active (in-progress) sessions or "C" for Completed sessions.
sessionKeyParameter must be supplied, but value is optional. If supplied, then only sessions with that key are returned.

Note
The partnerUserId can be assigned by Glance, but will typically be supplied by you, if you provision users with the Glance Provisioning API. For more information on provisioning, contact Glance support.

Sample Results

XML
<?xml version="1.0" encoding="UTF-8"?>
<userSessions xmlns="[http://www.glancenetworks.com/services](http://www.glancenetworks.com/services)" xmlns:xsd="[http://www.w3.org/2001/XMLSchema](http://www.w3.org/2001/XMLSchema)" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)">
   <validUser>true</validUser>
   <sessions>
      <session>
         <id>61943691</id>
         <type>C</type>
         <status>C</status>
         <startTime>2020-03-31T20:13:58Z</startTime>
         <key>1281</key>
         <width>0</width>
         <height>0</height>
         <duration>687</duration>
         <kbytes>28</kbytes>
         <isReverse>false</isReverse>
         <guests>
            <guest>
               <type>visitor</type>
               <status>C</status>
               <startTime>2020-03-31T20:13:54Z</startTime>
               <duration>687</duration>
               <kbytes>28</kbytes>
               <ip>12.345.678.910</ip>
               <location>
                  <city>Boston</city>
                  <region>MA</region>
                  <countryCode>US</countryCode>
               </location>
            </guest>
            <guest>
               <type>agent</type>
               <status>C</status>
               <startTime>2020-03-31T20:13:58Z</startTime>
               <duration>683</duration>
               <kbytes>19</kbytes>
               <ip>12.345.678.910</ip>
               <location>
                  <city>Boston</city>
                  <region>MA</region>
                  <countryCode>US</countryCode>
               </location>
            </guest>
         </guests>
      </session>
   </sessions>
</userSessions>