PivotalTrackerAPI/Domain/Model/PivotalUser.cs
/// <summary>
/// Retrieves the user's information, including the token, from Pivotal
/// </summary>
/// <param name="login">The user's login</param>
/// <param name="password">The user's password</param>
/// <returns>A Pivotal User containing the ApiToken for the user</returns>
Retrieves the user's information, including the token, from Pivotal
Retrieves the user ' s information including the token from Pivotal
public static PivotalUser GetUserFromCredentials(string login, string password)
    {
      string url = String.Format("{0}/tokens/active", PivotalService.BaseUrlHttps);
      XmlDocument xmlDoc = PivotalService.GetDataWithCredentials(url, login, password);
      PivotalUser user = SerializationHelper.DeserializeFromXmlDocument<PivotalUser>(xmlDoc);
      return user;
    }
public static PivotalUser GetUserFromCredentials ( string login , string password ) { string url = String . Format ( " " , PivotalService . BaseUrlHttps ) ; XmlDocument xmlDoc = PivotalService . GetDataWithCredentials ( url , login , password ) ; PivotalUser user = SerializationHelper . DeserializeFromXmlDocument < PivotalUser > ( xmlDoc ) ; return user ; }
Retrieves the user's information, including the token, from Pivotal
Retrieves the user ' s information including the token from Pivotal
A Pivotal User containing the ApiToken for the user
A Pivotal User containing the ApiToken for the user
login
string
The user's login
The user ' s login
password
string
The user's password
The user ' s password