<div dir="ltr"><div>Following you can find the code from the original Android app. The method only tries "getRecentPosts" and not any more. That fails without both "edit_published_posts" and "edit_others_posts" accesses. result.length == 0. <br>
</div><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">XMLRPCMethod method = new XMLRPCMethod((isPage) ? "wp.getPageList"<br> : "blogger.getRecentPosts", new XMLRPCMethodCallback() {<br>
public void callFinished(Object [ ] result) {<br><br></blockquote><div> <br>Do you mean anything different?<br><br>P.S. Why I'm insisting on using xml-rpc is that the app is already done! We just don't want to use a user account with edit access in our source codes. We didn't know about the permissions from the beginning and we were testing with admin account. #FAIL <br>
</div><br><div class="gmail_quote">On Fri, Jun 10, 2011 at 1:44 AM, Alexander Concha <span dir="ltr"><<a href="mailto:alex@buayacorp.com">alex@buayacorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Instead of modifying the user capabilities, why don't you add a new<br>
xmlrpc method that does a similar thing of get_recent_posts? You can<br>
easily add new xmlrpc methods.<br>
<div><div></div><div class="h5"><br>
On Thursday, June 9, 2011, Hessam Armandehi <<a href="mailto:hessam@farsitel.com">hessam@farsitel.com</a>> wrote:<br>
> Dear Eric,<br>
><br>
> Thanks for the tip. I tried the Role Scoper. It seems the user needs to have "edit_published_posts" and "edit_others_posts" permissions to get access to XML-RPC responses. True? I tried it on the original Wordpress Android app. I couldn't fetch the posts with Author role since it has no "edit_others_posts" permission. If it's true, what do you suggest then?<br>
><br>
> Best,<br>
> /Hessam<br>
><br>
> On Tue, Jun 7, 2011 at 6:22 PM, Eric Mann <<a href="mailto:eric@eam.me">eric@eam.me</a>> wrote:<br>
><br>
><br>
> My recommendation would be to use a plugin like Role Scoper (<a href="http://wordpress.org/extend/plugins/role-scoper/" target="_blank">http://wordpress.org/extend/plugins/role-scoper/</a>) to create a custom XML-RPC user role. You can then explicitly grant users the ability to read content but not create content.<br>
><br>
> On Tue, Jun 7, 2011 at 2:26 AM, Hessam Armandehi <<a href="mailto:hessam@farsitel.com">hessam@farsitel.com</a>> wrote:<br>
><br>
> Dear all,<br>
><br>
> We're developing an Android app for a <a href="http://wordpress.org" target="_blank">wordpress.org</a> blog. Since RSS only lists the most recent posts and we wanted to get access to the older ones we decided to use XML-RPC. Unfortunately I just found that subscriber role has no access to the XML-RPC features.<br>
><br>
> We need a read-only account to access XML-RPC and we don't want to put admin password in the app. How should we proceed? Any suggestion?<br>
><br>
> I found this myself:<br>
> <a href="http://wordpress.org/support/topic/xmlrpc-038-getrecentposts-038-user-role" target="_blank">http://wordpress.org/support/topic/xmlrpc-038-getrecentposts-038-user-role</a><br>
><br>
> No help though.<br>
><br>
> Best,<br>
> /Hessam<br>
><br>
><br>
> _______________________________________________<br>
> wp-xmlrpc mailing list<br>
> <a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
> <a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> wp-xmlrpc mailing list<br>
> <a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
> <a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
><br>
><br>
><br>
><br>
<br>
</div></div><font color="#888888">--<br>
Alexander Concha<br>
<a href="http://www.buayacorp.com" target="_blank">http://www.buayacorp.com</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
wp-xmlrpc mailing list<br>
<a href="mailto:wp-xmlrpc@lists.automattic.com">wp-xmlrpc@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-xmlrpc" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-xmlrpc</a><br>
</div></div></blockquote></div><br></div>