title: How to fetch and navigate to url provided by API using TypeScript
body: <p>I have a website manager that will return to me a different url for the server that my client should connect too.</p>
  
  <p>So what I would like to do in my typescript function is resolve the first url, read the text, and then open that in a new window. Right now I can only open website manager window with the bellow code.</p>
  
  <pre><code>            var aWindow = window.open("http://azureredirect.net/home/workspace/" + this.workspace.id, "Window", "");
              if (aWindow) {
                  aWindow.focus();
              }  
  </code></pre>
  
  <p>What I really want is something like the following but the WebClient line does not work(this is the C# version of what I would do)</p>
  
  <pre><code>            var url = WebClient.open("http://azurejupyterredirect.net/home/workspace/" + this.workspace.id").toString();
              var aWindow = window.open(url, "JuPy", "");
              if (aWindow) {
                  aWindow.focus();
              }  
  </code></pre>