PivotalTrackerAPI/Domain/Model/PivotalProject.cs
/// <summary>
/// Retrieves the membership information for a project
/// </summary>
/// <param name="user">The user to get the ApiToken from</param>
/// <param name="project">The project to get membership info for</param>
/// <returns>List of members in the project</returns>
Retrieves the membership information for a project
Retrieves the membership information for a project
public static PivotalMembershipList FetchMembers(PivotalUser user, PivotalProject project)
    {
      string url = String.Format("{0}/projects/{1}/memberships?token={2}", PivotalService.BaseUrl, project.Id.ToString(), user.ApiToken);
      XmlDocument xml = PivotalService.GetData(url);
      PivotalMembershipList memberships = SerializationHelper.DeserializeFromXmlDocument<PivotalMembershipList>(xml);
      return memberships;
    }
public static PivotalMembershipList FetchMembers ( PivotalUser user , PivotalProject project ) { string url = String . Format ( " " , PivotalService . BaseUrl , project . Id . ToString ( ) , user . ApiToken ) ; XmlDocument xml = PivotalService . GetData ( url ) ; PivotalMembershipList memberships = SerializationHelper . DeserializeFromXmlDocument < PivotalMembershipList > ( xml ) ; return memberships ; }
Retrieves the membership information for a project
Retrieves the membership information for a project
List of members in the project
List of members in the project
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from
project
PivotalProject
The project to get membership info for
The project to get membership info for