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

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

Open
sp2410 opened this issue Oct 19, 2020 · 2 comments
Open

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

sp2410 opened this issue Oct 19, 2020 · 2 comments

Comments

@sp2410
Copy link

sp2410 commented Oct 19, 2020

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

@dgb
Copy link
Contributor

dgb commented Dec 17, 2020

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.

@kangkyu
Copy link
Contributor

kangkyu commented Oct 29, 2022

@sp2410 will you open a pr on this? 😃

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

3 participants