VideosResource
Defined in: sdks/trendyol/src/resources/videos.ts:20
Trendyol Video API (seller-integration-video-api) — product video
uploads. Upload happens server-side from a URL the seller provides;
the SDK exposes the create + list endpoints.
Base path: /integration/video/sellers/{sellerId}/videos.
Trendyol publishes per-endpoint rate limits — create at 200 req/min,
list at 1000 req/min — which the SDK provisions as two separate
token buckets so listing doesn’t exhaust the create budget.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VideosResource(
transport,options?):VideosResource
Defined in: sdks/trendyol/src/resources/videos.ts:24
Parameters
Section titled “Parameters”transport
Section titled “transport”TrendyolTransport
options?
Section titled “options?”createLimiter?
Section titled “createLimiter?”TokenBucketRateLimiter
listLimiter?
Section titled “listLimiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”VideosResource
Methods
Section titled “Methods”create()
Section titled “create()”create(
input):Promise<CreateVideoResult>
Defined in: sdks/trendyol/src/resources/videos.ts:47
Queue a video for upload. Trendyol downloads from the URL in the
body asynchronously; poll list() (filtered by id) for status.
Trendyol documents the response as { videoId: string }; the SDK
surfaces it as videoId (pass it to list({ id })) and keeps the
untouched body on raw.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<CreateVideoResult>
Throws
Section titled “Throws”when input is empty / not an object.
list()
Section titled “list()”list(
params?):Promise<SellerVideo[]>
Defined in: sdks/trendyol/src/resources/videos.ts:63
List the seller’s integration videos (optionally filtered by id / status).
Parameters
Section titled “Parameters”params?
Section titled “params?”ListVideosParams = {}
Returns
Section titled “Returns”Promise<SellerVideo[]>
Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.