PivotalTrackerAPI/Domain/Model/PivotalProject.cs
/// <summary>
/// Fetches current projects from Pivot for a given user
/// </summary>
/// <param name="user">The user to get the ApiToken from</param>
/// <returns>List of projects accessible to the user</returns>
Fetches current projects from Pivot for a given user
Fetches current projects from Pivot for a given user
public static IList<PivotalProject> FetchProjects(PivotalUser user)
    {
      string url = String.Format("{0}/projects?token={1}", PivotalService.BaseUrl, user.ApiToken);
      XmlDocument xml = PivotalService.GetData(url);
      PivotalProjectList projectList = SerializationHelper.DeserializeFromXmlDocument<PivotalProjectList>(xml);
      return projectList.Projects;
    }
public static IList < PivotalProject > FetchProjects ( PivotalUser user ) { string url = String . Format ( " " , PivotalService . BaseUrl , user . ApiToken ) ; XmlDocument xml = PivotalService . GetData ( url ) ; PivotalProjectList projectList = SerializationHelper . DeserializeFromXmlDocument < PivotalProjectList > ( xml ) ; return projectList . Projects ; }
Fetches current projects from Pivot for a given user
Fetches current projects from Pivot for a given user
List of projects accessible to the user
List of projects accessible to the user
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from