Open
Description
I'm using tumbler API in my Application to post videos on behalf of user's account by authentication
$tumblr = new Client(
$this->app_key,
$this->app_secret,
$this->access_token,
$this->token_secret
);
try {
$blog_name = $tumblr->getUserInfo()->user->name;
$caption = $title;
$data = [
'type' => 'video',
'caption' => $caption,
'data' => $video_file,
];
$result = $tumblr->getUserInfo();
//debug($result);
$result = $tumblr->createPost($blog_name, $data);
if ($result) {
$response['status'] = true;
$response['video_id'] = $result->id;
$response['blog_name'] = $blog_name;
} else {
$response['status'] = false;
$response['message'] = $result;
}
} catch (RequestException $e) {
$response['status'] = false;
$response['message'] = 'Video uploading failed: ' . $e->getMessage();
}
After posting one video, it starts giving error
Video uploading failed: Bad Request (You may only upload one video per post.)
Is this account specific issue or API related issue? Also, how to resolve it?
Metadata
Metadata
Assignees
Labels
No labels