yt icon indicating copy to clipboard operation
yt copied to clipboard

Is there a way to get the CMS user details who created an asset?

Open sp2410 opened this issue 5 years ago • 2 comments

I am trying to get the details of the CMS user who created an asset in youtube CMS as shown in the screenshot attached. Before working on a new solution PR, I wanted to ask if YT gem provides a way (couldn't find any code) which I missed.

The network investigation shows that data is present under the JSON response

metadataForComparison[0] >source > cms > delegateUser

for the URL https://studio.youtube.com/youtubei/v1/cms/get_cms_assets?alt=json&key=YOUR_KEY

image

sp2410 avatar Oct 19 '20 21:10 sp2410

Hi there! I looked into this a little bit, and I think this is available with the list method on the OwnershipHistory resource in the partner API (https://developers.google.com/youtube/partner/docs/v1/ownershipHistory/list). Try plugging in that asset in the playground and see what you get. I see something that looks similar under the origination.source key. Let me know if that seems about right.

In any case, much of the partner API stuff in Yt is less built out than the Data API, so I think we'd need the notion of an OwnershipHistory model in Yt as well.

dgb avatar Dec 17 '20 01:12 dgb

@sp2410 will you open a pr on this? 😃

kangkyu avatar Oct 29 '22 20:10 kangkyu