BrightcoveOS / PHP-MAPI-Wrapper

This project provides a starting point for integrating the Brightcove Media API into your application. It provides simple ways to interact with the API, as well as a long list of helper functions.
http://opensource.brightcove.com/project/PHP-MAPI-Wrapper/
48 stars 51 forks source link

Wrong documentation example #22

Open lalit774 opened 11 years ago

lalit774 commented 11 years ago

Hi, open this page http://opensource.brightcove.com/project/php-media-api-wrapper

Find Query - Additional Parameters

This example shows how to define additional API call parameters using a key-value array.

Existing Code // Define our parameters $params = array( 'id' => 123456789, 'video_fields' => 'video_id,name,shortDescription' );

// Make our API call $video = $bc->find('videoById', $params);

Replace with following code // Define our parameters $params = array( 'id' => 123456789, 'video_fields' => 'id,name,shortDescription' );

// Make our API call $video = $bc->find('videoById', $params);

Diff video_id must be id.

'video_fields' => 'video_id,name,shortDescription'

'video_fields' => 'id,name,shortDescription'