{"action":"created","issue":{"url":"https://api.github.com/repos/brightcove/PHP-API-Wrapper/issues/28","repository_url":"https://api.github.com/repos/brightcove/PHP-API-Wrapper","labels_url":"https://api.github.com/repos/brightcove/PHP-API-Wrapper/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/brightcove/PHP-API-Wrapper/issues/28/comments","events_url":"https://api.github.com/repos/brightcove/PHP-API-Wrapper/issues/28/events","html_url":"https://github.com/brightcove/PHP-API-Wrapper/issues/28","id":241182196,"number":28,"title":"How to get FLV URL with the new API?","user":{"login":"F3L1X79","id":9592639,"avatar_url":"https://avatars1.githubusercontent.com/u/9592639?v=4","gravatar_id":"","url":"https://api.github.com/users/F3L1X79","html_url":"https://github.com/F3L1X79","followers_url":"https://api.github.com/users/F3L1X79/followers","following_url":"https://api.github.com/users/F3L1X79/following{/other_user}","gists_url":"https://api.github.com/users/F3L1X79/gists{/gist_id}","starred_url":"https://api.github.com/users/F3L1X79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F3L1X79/subscriptions","organizations_url":"https://api.github.com/users/F3L1X79/orgs","repos_url":"https://api.github.com/users/F3L1X79/repos","events_url":"https://api.github.com/users/F3L1X79/events{/privacy}","received_events_url":"https://api.github.com/users/F3L1X79/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-07T07:36:31Z","updated_at":"2017-09-12T08:37:50Z","closed_at":"2017-09-12T08:05:28Z","author_association":"NONE","body":"With the old API, it was possible to get the FLV URL like:\r\n\r\n```\r\n$bc = new BCMAPI(\r\n\t    \t'xxx', 'xxx'\r\n\t    );\r\n\t\t$searchParams = array(\r\n\t        'video_id' => $id,\r\n\t        'media_delivery' => 'HTTP',\r\n\t        'video_fields' => 'FLVURL'\r\n\t    );\r\n\t\t$cbf = $bc->find('videobyid', $searchParams);\r\n\t\t$flvurl = $cbf->{'FLVURL'};\r\n```\r\n\r\nWith the new API I tried:\r\n```\r\n                    $CLIENT_ID = 'xxx';\r\n                    $CLIENT_SECRET = 'xxx';\r\n                    $ACCOUNT = 'xxx';\r\n\r\n                        $CLIENT = \\Brightcove\\API\\Client::authorize($CLIENT_ID, $CLIENT_SECRET);\r\n                        $CMS = new \\Brightcove\\API\\CMS($CLIENT, $ACCOUNT);\r\n\r\n                        $cms_video = $CMS->getVideo($id);\r\n                        var_dump($cms_video->link);\r\n```\r\n\r\nBut the link attribute is always NULL.\r\nAny help is greatly appreciated."},"comment":{"url":"https://api.github.com/repos/brightcove/PHP-API-Wrapper/issues/comments/328783603","html_url":"https://github.com/brightcove/PHP-API-Wrapper/issues/28#issuecomment-328783603","issue_url":"https://api.github.com/repos/brightcove/PHP-API-Wrapper/issues/28","id":328783603,"user":{"login":"F3L1X79","id":9592639,"avatar_url":"https://avatars1.githubusercontent.com/u/9592639?v=4","gravatar_id":"","url":"https://api.github.com/users/F3L1X79","html_url":"https://github.com/F3L1X79","followers_url":"https://api.github.com/users/F3L1X79/followers","following_url":"https://api.github.com/users/F3L1X79/following{/other_user}","gists_url":"https://api.github.com/users/F3L1X79/gists{/gist_id}","starred_url":"https://api.github.com/users/F3L1X79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/F3L1X79/subscriptions","organizations_url":"https://api.github.com/users/F3L1X79/orgs","repos_url":"https://api.github.com/users/F3L1X79/repos","events_url":"https://api.github.com/users/F3L1X79/events{/privacy}","received_events_url":"https://api.github.com/users/F3L1X79/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T08:37:50Z","updated_at":"2017-09-12T08:37:50Z","author_association":"NONE","body":"Brightcove API is a real pain, seriously."}}
{"actor":{"display_login":"F3L1X79"}}