You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for raising the issue @joegarcia ! It looks like the video resource is missing the create and delete methods, even though those methods are allowed:
Hi @joegarcia , the change has merged and should be included if you pull down the latest version of the library. Would you mind testing and closing out this issue if that fixed the problem? Thanks!
From the documentation in the following URL, you would think you can create, delete, and delete_all videos for a product:
https://developer.bigcommerce.com/legacy/v2-catalog-products/v2-product-videos
newer documentation:
https://developer.bigcommerce.com/api-reference/catalog/catalog-api/product-videos/
Expected behavior
I expected that you would be able to something like this and it create a video:
video = api.ProductVideos.create(parentid=product_id, url=video_url)
Actual behavior
If I try to create a video I get the following error:
AttributeError: type object 'ProductVideos' has no attribute 'create'
Steps to reproduce behavior
product_id = "id of product"
video_url = "some youtube video url"
video = api.ProductVideos.create(parentid=product_id, url=video_url)
The text was updated successfully, but these errors were encountered: