Url_WorkbookConnectionsList() public method

URL for the Workbook's data source connections list
public Url_WorkbookConnectionsList ( TableauServerSignIn, session, string workbookId ) : string
session TableauServerSignIn,
workbookId string
return string
        /// <summary>
        /// Execute request for Workbook connections.
        /// </summary>
        public void ExecuteRequest()
        {
            var wbConnections = new List <SiteConnection>();

            //Create a web request, in including the users logged-in auth information in the request headers
            var urlQuery   = _onlineUrls.Url_WorkbookConnectionsList(OnlineSession, _workbookId);
            var webRequest = CreateLoggedInWebRequest(urlQuery);

            webRequest.Method = "GET";

            OnlineSession.StatusLog.AddStatus("Web request: " + urlQuery, -10);
            var response = GetWebResponseLogErrors(webRequest, "get workbook's connections list");
            var xmlDoc   = GetWebResponseAsXml(response);

            //Get all the workbook nodes
            var nsManager   = XmlHelper.CreateTableauXmlNamespaceManager("iwsOnline");
            var connections = xmlDoc.SelectNodes("//iwsOnline:connection", nsManager);

            //Get information for each of the data sources
            foreach (XmlNode itemXml in connections)
            {
                try
                {
                    var connection = new SiteConnection(itemXml);
                    wbConnections.Add(connection);
                }
                catch
                {
                    AppDiagnostics.Assert(false, "Workbook  connections parse error");
                    OnlineSession.StatusLog.AddError("Error parsing workbook: " + itemXml.InnerXml);
                }
            } //end: foreach

            _connections = wbConnections;
        }