Daniel F. S.
unread,Mar 21, 2012, 9:50:24 AM3/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tumblr API Discussion
I find the error in my source code.I want to postpone the publication
of a post.
This is part of my source code:
===================================================
$time = "2012-03-21 12:18:00"; //date to pospone
if($time !== ""){
$time = str_replace (" ", "T", "$time"); //make date string
0000-00-00T00:00:00
$estado = 'publish-on='.$time; //write value
}else{$estado = 'queue';}
switch ($post_type) {
case "photo":
$request_data = http_build_query(
array(
'email' => $tumblr_email,
'password' => $tumblr_password,
'type' => $post_type,
'caption' => $post_title,
'source' => $data,
'tags' => $tags,
'state' => $estado, //put value to string
'group' => $group,
'generator' => $generado,
'date' => $date
)
);
break;
default:
}
===================================================
$estado show: publish-on=2012-03-21T12:18:00
The server responds: Error (400): Invalid state value
Where is the problem?
PD: sorry for my English & thx.