Skip to content

Commit 73d8cd4

Browse files
committed
fix // and user_name->api_key, see https://qencode.atlassian.net/browse/QCD-344
1 parent 7f828b2 commit 73d8cd4

File tree

3 files changed

+4
-54
lines changed

3 files changed

+4
-54
lines changed

examples/get_metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Qencode\Classes\Metadata;
99

1010
// Replace this with your API key
11-
$apiKey = 'abcde12345';
11+
$apiKey = '1234567890123';
1212
$video_url = 'https://nyc3.s3.qencode.com/qencode/bbb_30s.mp4';
1313

1414
$q = new QencodeApiClient($apiKey);

examples/get_metadata2.php

Lines changed: 0 additions & 51 deletions
This file was deleted.

src/QencodeApiClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ class QencodeApiClient
2222
private $lastResponseRaw;
2323

2424
private $lastResponse;
25-
26-
public $url = 'https://api.qencode.com/';
25+
// fix "POST //v1/access_token HTTP/1.0"
26+
// public $url = 'https://api.qencode.com/';
27+
public $url = 'https://api.qencode.com';
2728
public $version = 'v1';
2829
private $supported_versions = array('v1', 'v1.1');
2930

0 commit comments

Comments
 (0)