Cisco Cisco TelePresence Management Suite (TMS) Version 15 Developer's Guide

Page of 74
Booking API setup
The code snippet below demonstrates how to authenticate with Cisco TMSBA and specify the version.
public
 
void
 InitBookingService()
 
{
 
    
// Specify username and password to authenticate to service. 
 
    
// (Can also be done in web.config) 
 
    NetworkCredential credentials = 
new
 NetworkCredential(
"username"
"password"
"domain"
);
 
                                                                        
 
    bookingService = 
new
 BookingService {Credentials = credentials};
 
    
if
 (bookingService.ExternalAPIVersionSoapHeaderValue == 
null
)
 
    {
 
        bookingService.ExternalAPIVersionSoapHeaderValue = 
new
 ExternalAPIVersionSoapHeader();
 
    }
 
    bookingService.ExternalAPIVersionSoapHeaderValue.ClientVersionIn = 11;             
 
}
Cisco TelePresence Management Suite Extension Booking API Programming Reference Guide (14.4)     
Page 66 of 74
Code examples