public static AccountInfo GetAccountMetadata( QApi api )
 {
     api.Host.IsValidHost();
     IQuatrixRequest req = api;
     req.Enable( false );
     string str = req.CreateRequest( "/account/metadata", null, string.Empty );
     return req.ToEntity<AccountInfo>( str );
 }
 /// <summary>
 /// Used to request user password reset email.
 /// </summary>
 /// <param name="host">Quatrix name where account is hosted</param>
 /// <param name="email">Address to send the email</param>
 /// <returns>True when request sending was successful. Otherwise - false</returns>
 public static bool ResetPassword( string host, string email )
 {
     QApi api = new QApi( host, email );
     IQuatrixRequest request = api;
     request.Enable( false );
     string api_call = "/user/request_password_reset";
     string api_uri = request.CreateApiCallUri( api_call );
     string res = request.CreateRequest( api_call, Parameters.ResetPass( api.Email ), string.Empty, new Func<QException>( ( ) => {
         throw new ArgumentException( Error.api_credential_incorrect );
     } ) );
     return !string.IsNullOrEmpty( res );
 }