Gravatar XML-RPC request problem in Objective-C

Posted by Erik on Stack Overflow See other posts from Stack Overflow or by Erik
Published on 2010-06-14T04:22:41Z Indexed on 2010/06/14 4:32 UTC
Read the original article Hit count: 394

Filed under:
|
|

Hi all,

I'm trying to incorporate some Gravatar functionality using its XML-RPC API in an iPhone app I'm writing. I grabbed the Cocoa XML-RPC Framework by Eric Czarny (http://github.com/eczarny/xmlrpc) and it works well when I tested it with some of the Wordpress methods. However, when I try to use the Gravatar API, I always receive a response of "Error code: -9 Authentication error". I think I'm constructing the request correctly, but I've been wracking my brain and can't seem to figure it out. Maybe someone has some experience with this API or can see what I'm doing wrong. Here's the call:

<?xml version="1.0">
<methodCall>
  <methodName>grav.addresses</methodName>
  <params>
    <param><value><string>PASSWORD_HERE</string></value></param>
  </params>
</methodCall>

Again, the Cocoa XML-RPC Framework worked like a dream with Wordpress, but it's choking on the Gravatar API for some reason.

Thanks for your help.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about xml-rpc