Ejemplo n.º 1
0
 public void AddXmlRpcLogin(ConsoleCommand command)
 {
     command.HasOption("rpc=",
                       "Url of wordpress XML-RPC endpoint (example: http://joeblogstest.alexjamesbrown.com/xmlrpc.php)",
                       v => XmlRpcUrl = v);
     command.HasOption("u=", "Username", v => Username = v);
     command.HasOption("p=", "Password", v => Password = v);
 }
Ejemplo n.º 2
0
        public void ApplyTo(ConsoleCommand command)
        {
            FindAndLoadCredentialsIfAvailable();

            if (string.IsNullOrEmpty(Username))
            {
                ApplyWithoutCheckingFile(command);
            }
            else
            {
                command.HasOption("u=", string.Format("Username (default is {0})", Username), v => Username = v);
                command.HasOption("s=", string.Format("Secret key (default is for {0})", Username), v => Secret = v);
            }
        }
Ejemplo n.º 3
0
        public void ApplyTo(ConsoleCommand command)
        {
            command.HasOption("e=", "Endpoint url used for requests.", v => Endpoint = v);

            Credentials = new ApiCredentialParameters();
            Credentials.ApplyTo(command);
        }