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

I'm not seeing support for KAF in the PHP 5.3 SDK #1

Open
usulix opened this issue Aug 19, 2020 · 5 comments
Open

I'm not seeing support for KAF in the PHP 5.3 SDK #1

usulix opened this issue Aug 19, 2020 · 5 comments

Comments

@usulix
Copy link

usulix commented Aug 19, 2020

$schedulePlugin = KalturaScheduleClientPlugin::get($client);
$scheduleResource = new KalturaLocationScheduleResource();
$scheduleResource->description = "My first meeting room";
$scheduleResource->name = "Room-1";
$scheduleResource->tags = "vcprovider:newrow";
$result = $schedulePlugin->scheduleResource->add($scheduleResource);

This looks good, but I am not finding it in the SDK

@usulix
Copy link
Author

usulix commented Aug 19, 2020

Looks like class names have changed some

Kaltura\Client\Configuration
Kaltura\Client\Client
Kaltura\Client\Enum\SessionType
Kaltura\Client\Plugin\Schedule\Service\ScheduleResourceService
Kaltura\Client\Plugin\Schedule\Type\LocationScheduleResource

These are the classes I had success with from the PHP SDK I downloaded.
I was able to create a KAF resource and add users/retrieve KS tokens from these

@pfuternik
Copy link
Contributor

pfuternik commented Aug 19, 2020

$schedulePlugin = KalturaScheduleClientPlugin::get($client);
$scheduleResource = new KalturaLocationScheduleResource();
$scheduleResource->description = "My first meeting room";
$scheduleResource->name = "Room-1";
$scheduleResource->tags = "vcprovider:newrow";
$result = $schedulePlugin->scheduleResource->add($scheduleResource);

This looks good, but I am not finding it in the SDK

This should be the proper API from the SDK. It's in line with the sample code that is shown here: https://developer.kaltura.com/console/service/scheduleResource/action/add

@pfuternik
Copy link
Contributor

Looks like class names have changed some

Kaltura\Client\Configuration
Kaltura\Client\Client
Kaltura\Client\Enum\SessionType
Kaltura\Client\Plugin\Schedule\Service\ScheduleResourceService
Kaltura\Client\Plugin\Schedule\Type\LocationScheduleResource

These are the classes I had success with from the PHP SDK I downloaded.
I was able to create a KAF resource and add users/retrieve KS tokens from these

Is this inconsistent with anything you saw in the documentation?

@usulix
Copy link
Author

usulix commented Aug 19, 2020

Yes
Documentation says
$schedulePlugin = KalturaScheduleClientPlugin::get($client);
and I am reading that as PHP code because of the $ prefacing variables.

I have not found a KalturaScheduleClientPlugin in the PHP SDK that I downloaded recently.
I was able to find and use

            $client = new Kaltura\Client\Client(new Kaltura\Client\Configuration(config('kaltura.partner_id')));
            $session = $client->generateSession(
                config('services.kaltura.admin_secret'),
                config('services.kaltura.email'),
                SessionType::ADMIN,
                config('services.kaltura.partner_id'),
                300
            );

@pfuternik
Copy link
Contributor

Kaltura provides several different PHP libs, which you can find here: https://developer.kaltura.com/api-docs/Client_Libraries

KalturaScheduleClientPlugin is defined in the PHP 5.3+ lib.

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

No branches or pull requests

2 participants