Playlist Service and List action - iOS Swift

I have been trying from last 7+ hours to get the list of playlist.

I am working on an iOS project and using following:-

https://www.kaltura.com/api_v3/?service=playlist&action=list&format=1&ks=

And I have been getting this in my console:-
{
“objects”:[],
“totalCount”:0,
“objectType”:“KalturaPlaylistListResponse”
}

I tried testing it on http://www.kaltura.com/api_v3/testme/ and I get same result.

But when I test it on https://developer.kaltura.com/console/#/playlist.list … I get expected result, the list of playlists :slight_smile:

Please suggest what am I doing wrong?

Hi,

First of all, I removed the KS from your post, you should never share that since it would allow anyone to use it while it’s valid [by default, a KS is valid for 24 hours or 86400 seconds].
As for your question, do you actually see playlists in the KMC for the partner this KS belongs to?

Oh I am sorry, I thought I deleted before posting.

Yes and as I mentioned, I am able to see it using your test console https://developer.kaltura.com/console/#/playlist.list but when I am running my project in xcode or test it on http://www.kaltura.com/api_v3/testme/ i get following message:-

{
“objects”:[],
“totalCount”:0,
“objectType”:“KalturaPlaylistListResponse”
}

Please share your code and I’ll take a look. Before that, do make sure your code uses the same partner ID as when you use test on https://developer.kaltura.com/console/#/playlist.list

If you connect your iOS device to a laptop and run a sniffer, you should be able to see the exact api_v3/index.php?service=playlist&action=list HTTP request being made to our endpoint, which should include the KS, that KS can also be decoded so you can see its attributes.