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

Region support #2

Closed katz-bckk closed 13 years ago

katz-bckk commented 13 years ago

In bc-mapi.php, there's two api.brightcove.com. If you create Brightcove Studio account in Japan, you need to call against api.brightcove.co.jp, not api.brightcove.com. So, please add Region support to handle this issue.

mcongrove commented 13 years ago

You can change the API query URL by running the following immediately after instantiation (and before making any calls):

$bc->__set('url_read', 'api.brightcove.co.jp/services/library?');
$bc->__set('url_write', 'api.brightcove.co.jp/services/post');

At this time there are no plans to alter this behavior, but we'll add it to the roadmap for future consideration.