Prod code

This commit is contained in:
ポール ウェッブ 2019-04-23 10:50:49 -05:00
parent 3c9e5601d4
commit 79e211e88d

View file

@ -53,23 +53,23 @@ class LBRY
public static function connectYoutube($channel_name, $immediateSync = false)
{
// Uncomment next line for production and comment other return
// return Curl::post(static::getApiUrl('/yt/new'), [
// 'desired_lbry_channel_name' => $channel_name,
// 'immediate_sync' => $immediateSync,
// 'type' => 'sync'
// ], [
// 'json_response' => true
// ]);
// Uncomment next line for development and comment other return (this also requires the testnet API)
return Curl::post(static::getApiUrl('/yt/new'), [
'desired_lbry_channel_name' => $channel_name,
'immediate_sync' => $immediateSync,
'return_url' => 'http://localhost:8000/youtube/status/',
'type' => 'sync'
], [
'json_response' => true
]);
// Uncomment next line for development and comment other return (this also requires the testnet API)
// return Curl::post(static::getApiUrl('/yt/new'), [
// 'desired_lbry_channel_name' => $channel_name,
// 'immediate_sync' => $immediateSync,
// 'return_url' => 'http://localhost:8000/youtube/status/',
// 'type' => 'sync'
// ], [
// 'json_response' => true
// ]);
}
// Check the sync status