getMedia

11 views
Skip to first unread message

Steve

unread,
Oct 24, 2009, 9:47:50 PM10/24/09
to Fotolia API
I have an active API account (Business)

I post to loginUser and receive

<methodResponse><params><param><value><struct><member><name>session_id</
name><value><string>180ba52787719f14fe560ba5a042af20</string></value></
member></struct></value></param></params></methodResponse>

I post to getMedia

<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>xmlrpc.getMedia</methodName>
<params>
<param>
<value>
<string>KEY_REMOVED</string>
</value>
</param>
<param>
<value>
<string>180ba52787719f14fe560ba5a042af20</string>
</value>
</param>
<param>
<value>
<int>7730319</int>
</value>
</param>
<param>
<value>
<string>M</string>
</value>
</param>
</params>
</methodCall>

And receive an invalid SessionID message?

Why?

As you can see the session Id sent is the same as that returned from
loginUser.

Can anyone help?

Steve

Olivier Sirven

unread,
Oct 25, 2009, 6:13:21 AM10/25/09
to fotol...@googlegroups.com
Hi Steve,

The HTTP client you're using to send your XML-RPC requests has to
support cookies.

Regards,

Olivier
Reply all
Reply to author
Forward
0 new messages