-
-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
Hi everyone
I use this code but got this error that my password is not correct , I test username and pass in browser and it is correct .
what is the problem ?
var client = new WordPressClient("https://test.com/wp-json/");
client.Auth.UseBasicAuth("admin", "pass ";
var wpUser = new WordPressPCL.Models.User();
wpUser.Email = "test@lastsss.com";
wpUser.FirstName = "aa";
try
{
client.JsonSerializerSettings = new Newtonsoft.Json.JsonSerializerSettings() { DefaultValueHandling = Newtonsoft.Json.DefaultValueHandling.Ignore };
wpRespond = await client.Users.CreateAsync(wpUser);
}
catch (WPException wpex)
{
throw wpex;
};
Metadata
Metadata
Assignees
Labels
No labels