Skip to content
New issue

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

post a private video #79

Open
gtraxx opened this issue Mar 31, 2023 · 2 comments
Open

post a private video #79

gtraxx opened this issue Mar 31, 2023 · 2 comments

Comments

@gtraxx
Copy link

gtraxx commented Mar 31, 2023

Hi, is there a setting to post a video privately and generate a visibility link used in a site.
So that the video is only visible on the site and not on Dailymotion.

$videoTitle = $title;
            $channel = 'auto';
            $postvideo = $api->post(
                '/me/videos',
                array(
                    'url'       => $url,
                    'title'     => $videoTitle,
                    //'tags'      => 'dailymotion,api,sdk,test',
                    'channel'   => $channel,
                    'published' => true,
                    'is_created_for_kids' => false,
                )
            );

Best Regards

@gtraxx
Copy link
Author

gtraxx commented Apr 12, 2023

I found for the parameter during the upload, on the other hand, is the ID different for a private video ?

$postvideo = $api->post(
            '/me/videos',
            array(
                'url'       => $url,
                'title'     => $videoTitle,
                //'tags'      => 'dailymotion,api,sdk,test',
                'channel'   => $channel,
                'published' => false,
                'is_created_for_kids' => false,
                'private'   => true
            )
        );

return =>
Array ( [id] => xxxxxxx [title] => test client [channel] => auto [owner] => xxxxx )
private ID ???

@nicoferron
Copy link
Collaborator

Hello @gtraxx, yes the ID is different for a private video, you can retrieve it using the private_id fields. To play a private video, use its private ID when you reference it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants