question

esellersolutionsuk avatar image
0 Likes"
esellersolutionsuk asked

Create Video call implementation

Can someone provide a working example code for creating video using the new Media API?

media api
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @esellersolutionsuk,

Media API gives a user an ability to create and upload videos. This video can be used to attach with a listing. Uploading a video is a two step process:

- First step is to execute createVideo and specify the title, size, and classification. After the successful execution of createVideo call, you will get the Video ID in the location header under the response headers.
Ref: https://developer.ebay.com/api-docs/commerce/media/resources/video/methods/createVideo

- Second step is to execute UploadVideo call for the videoID and after the successful execution, you will get the 200 status code in the response.
Ref:https://developer.ebay.com/api-docs/commerce/media/resources/video/methods/uploadVideo

You can use the getVideo call with the videoID to get the current status of the videoID.
Ref: https://developer.ebay.com/api-docs/commerce/media/resources/video/methods/getVideo

When using Trading API to Add/Revise/Relist an item you can use VideoDetails field to associate the video to listing.
Ref: https://developer.ebay.com/api-docs/sell/static/inventory/managing-video-media.html#AddingVideos

eBay will perform a validation check on each specified VideoID value to verify that the video belongs to, and was uploaded by the seller.

Best Regards,
eBay Developer Support

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.