R2D2 on God, 42, the Universe and everything else
  
  

mobiletech

Mobile technology news and articles, including iOS, Android, Windows Mobile, BlackBerry, etc

1 2 3 6

WordPress XML RPC API seems out of date

 

I was trying to work out the call format for posting to WordPress 4.x using the built-in XML API (from an Android app I’m working on ) and kept getting constantly an error. Yes, compiling, running and posting from the Android open source WordPress app was working just fine.

So me being the engineer I am I’ve fired up Wireshark on my server and captured both requests… turns out that the calls made by the native app are using a slighlty DIFFERENT API… go figure. Yet, not quite so obvious when you search for it…

FAILING CALL

<?xml version=”1.0″ encoding=”iso-8859-1″?>
<methodCall>
<methodName>wp.newPost</methodName>
<params>
<param><value>1</value></param>
<param><value>user</value></param>
<param><value>password</value></param>
<param><value></value></param>
<param><value>post</value></param>
<param><value>draft</value></param>
<param><value>Test Post RPC title</value></param>
<param><value></value></param>
<param><value>Test RPC post Excerpt</value></param>
<param><value>This is a test post via XMLRPC SOAP</value></param>
</params>
</methodCall>

WORKING CALL
<?xml version=’1.0′ ?>
<methodCall>
<methodName>metaWeblog.newPost</methodName><params>
<param><value><i4>1</i4></value></param>
<param><value><string>user</string></value></param>
<param><value><string>password</string></value></param>
<param><value><struct><member><name>title</name><value><string>Test POST1 via RPC-XML interface client </string></value></member>
<member><name>wp_password</name><value><string></string></value></member>
<member><name>post_status</name><value><string>draft</string></value></member>
<member><name>description</name><value><string>Test POST1 content via RPC-XML interface client</string></value></member>
<member><name>mt_excerpt</name><value><string>Excerpt Test POST1 via RPC-XML interface client</string></value></member>
<member><name>mt_keywords</name><value><string></string></value></member>
<member><name>post_type</name><value><string>post</string></value></member>
<member><name>wp_post_format</name><value><string>standard</string></value></member>
</struct></value></param>
<param><value><boolean>0</boolean></value></param></params>
</methodCall>

So you already have this killer idea of an app/service that solves a particular need?
Here is my take on what you need to consider when building it, in order to ensure rapid customer uptake and market penetration. I made this up based on my observation of the industry in the past few years, including my own work.

 

1 – use open source wherever possible

2 – use REST where possible

3 – develop client for all platforms, including all mobile and desktop

4 – don’t waste time debating native vs hybrid – use best suited for particular platform… Continue reading

(curated by R2D2 from Engadget RSS Feed. More fresh stories at http://radudee2… )

Linux kernel 310 arrives with more efficient multitasking, ARM bigLITTLE support

Thanks to Linus Torvalds’ figurative stroke of the pen, the Linux kernel 3.10 is now final — paving the way for its inclusion in a bevy of Linux distributions, and even offshoots such as Android and Chrome OS. The fresh kernel brings a good number of changes, such as timerless multitasking, a new caching implementation and support for the ARM big.LITTLE architecture. In simplistic terms, the new multitasking method should help improve performance and latency by firing the system timer only once per second — rather… Continue reading

(curated by R2D from Business Insider)

samsung galaxy s 4 with iphone 5

While many have framed the redesign to Apple’s new operating system for iPhones and iPads, iOS 7, as a response to rhetoric that Apple’s software has begun to look “stale,” “boring,” and “outdated,” Instapaper founder and early Tumblr employee Marco Arment thinks that Apple had a different strategy in mind.

Rather than simply reinvigorating consumer excitement by giving them something new to look at, Arment thinks that Apple’s big changes are meant to force developers to focus on the iOS platform for the next few months.

He compares it to the release of the… Continue reading

1 2 3 6