alexjamesbrown / JoeBlogs

Wordpress / Metaweblog API Wrapper
53 stars 40 forks source link

User Roles #19

Open ghost opened 11 years ago

ghost commented 11 years ago

Please can showme how can extract to string variable user role using wp.GetUserInfo()

Is possible?

I apreciate if can post some short code example.

Basically I want see the user role of user logged

WordPressWrapper wrapper = new WordPressWrapper (Url, User, Password); var wp = new WordPressWrapper (Url, User, Password);

string user-role = ????????

Please I appreciate and example, im not lazy but not have idea how do this. I see your reply in codeplex, anyway no idea how perform this task.

alexjamesbrown commented 11 years ago

This isn't yet implemented. There's no way of currently doing it.

The user class doesn't contain roles https://github.com/alexjamesbrown/JoeBlogs/blob/master/JoeBlogs/classes/UserInfo.cs

alexjamesbrown commented 11 years ago

I'll try and get on to this soon

ghost commented 11 years ago

Ups, that is really bad news, I need check and know the user role : ( Now 100% freezed. Thanks for your faster repply

ghost commented 11 years ago

Alex, what is soon : ) ? One week? One month? More? Best regards!

alexjamesbrown commented 11 years ago

I have no idea, i'm very busy. Feel free to implement it yourself and submit a pull request though.

ghost commented 11 years ago

Its ok im fix what I need in other way, thankyou anyway for you great tool!! : )