Thursday, June 30, 2011

remove fotolia water mark

Neil,

"neil" <niuz...@gmail.com> writes:
>    these days I find the some comp image in my website have the fotolia
>    watermark.
>    why?
>    I have the reseller API.
You have to be logged in order not to have the fotolia watermark on the
comp files. The simpliest way to do it is to use once user.loginUser API
mehod to retrieve your session ID and then to include it to your subsequent
calls to the comp urls. For example:
// get session ID
$res = user.loginUser($api_key, $login, $password);
$session_id = $res['session_id'];

// get comp url
$comp = media.getMediaComp($api_key, $id);
$comp_url = $comp['url'];

// fetch comp with the session ID cookie
system('curl -H PHPSESSID: ' . $session_id . ' ' . $comp_url);

No comments:

Post a Comment