We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello
Not related to php sdk it seems, but related to API itself.
$pCloudFolder = new pCloud\Sdk\Folder($pCloudApp); $content = $pCloudFolder->getContent($_GET['folderId']); $request = new pCloud\Sdk\Request($pCloudApp); foreach ($content as $item) { if (strpos($item->name, 'm3u8') !== false) { $response = $request->get("gethlslink", ['fileid' => $item->fileid]); // this produces error //$response = $request->get("getfilelink", ['fileid' => $item->fileid]); // this is ok } }
When I try to API directly from the terminal :
// works perfectly curl -X GET 'https://eapi.pcloud.com/getfilelink?fileid=123456&access_token=thisisascret'
// gives 1000 error (log in required, but the access token works for previous curl command) curl -X GET 'https://eapi.pcloud.com/gethlslink?fileid=123456&access_token=thisisascret'
According to the documentation, both endpoints should require exactly the same input parameters so I don't understand...
The text was updated successfully, but these errors were encountered:
Just a heads up.
https://docs.pcloud.com/methods/streaming/gethlslink.html
You using eapi (Europe), in the documentation is listed as only api.pcloud.com.
Sorry, something went wrong.
No branches or pull requests
Hello
Not related to php sdk it seems, but related to API itself.
$pCloudFolder = new pCloud\Sdk\Folder($pCloudApp); $content = $pCloudFolder->getContent($_GET['folderId']); $request = new pCloud\Sdk\Request($pCloudApp); foreach ($content as $item) { if (strpos($item->name, 'm3u8') !== false) { $response = $request->get("gethlslink", ['fileid' => $item->fileid]); // this produces error //$response = $request->get("getfilelink", ['fileid' => $item->fileid]); // this is ok } }
When I try to API directly from the terminal :
// works perfectly
curl -X GET
'https://eapi.pcloud.com/getfilelink?fileid=123456&access_token=thisisascret'
// gives 1000 error (log in required, but the access token works for previous curl command)
curl -X GET
'https://eapi.pcloud.com/gethlslink?fileid=123456&access_token=thisisascret'
According to the documentation, both endpoints should require exactly the same input parameters so I don't understand...
The text was updated successfully, but these errors were encountered: