public function get_thumbnail_url( $id ) {
$request = “http://openapi.youku.com/v2/videos/show.json?video_id=$id&client_id=xxxxxxxxx”; ###### client_id need to get from Youku.
$response = wp_remote_get( $request );
if( is_wp_error( $response ) ) {
$result = $this->construct_info_retrieval_error( $request, $response );
} else {
$result = json_decode( $response[‘body’] );
$result = $result->bigThumbnail;
}
return $result;
}
It’s work
Follow Image Is Bulk results.Show 2 post new Thumbnail.
But it’s not post to my Databases.

DataBase

When i back to video page.and scan thumbnail.
It’s show error.But not show details in debug.log

Here’s the code i modified.

-
This reply was modified 9 years, 9 months ago by kirktsao.
-
This reply was modified 9 years, 9 months ago by kirktsao.
-
This reply was modified 9 years, 9 months ago by kirktsao.
-
This reply was modified 9 years, 9 months ago by kirktsao.