/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Aleksandar Cvetković
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package htsquirrel;

/**
 *
 * @author Aleksandar Cvetković <arcvetkovic@gmail.com>
 */
public class Responses {
    
}

@@ -1171,99 +1171,1051 @@
 l;%0A%0A
-/**%0A *%0A * @author Aleksandar Cvetkovi%C4%87 %3Carcvetkovic@gmail.com%3E%0A */%0Apublic class Responses %7B
+import static htsquirrel.DownloadManagement.*;%0Aimport static htsquirrel.OAuth.*;%0Aimport java.io.IOException;%0Aimport javax.xml.parsers.ParserConfigurationException;%0Aimport org.scribe.model.Token;%0Aimport org.scribe.oauth.OAuthService;%0Aimport org.w3c.dom.Document;%0Aimport org.w3c.dom.Element;%0Aimport org.xml.sax.SAXException;%0A%0A/**%0A *%0A * @author Aleksandar Cvetkovi%C4%87 %3Carcvetkovic@gmail.com%3E%0A */%0Apublic class Responses %7B%0A    %0A    public static int getUserId(OAuthService oAuthService,%0A            Token accessToken)%0A            throws ParserConfigurationException, SAXException, IOException %7B%0A        int userId;%0A        String xmlString = getResponse(oAuthService, accessToken,%0A                %22teamdetails&version=3.2%22);%0A        Document document = xmlStringToDoc(xmlString);%0A        document.getDocumentElement().normalize();%0A        Element userElement = (Element) document.getElementsByTagName(%22User%22).item(0);%0A        userId = Integer.parseInt(userElement.getElementsByTagName(%22UserID%22).item(0).getTextContent());%0A        return userId;%0A    %7D
 %0A   

Add getUserId