为什么 Delivery Preview API 显示也发布内容?
Why the Delivery Preview API shows also publish content?
正如标题所说,为什么交付 API 还显示已发布的内容,而不仅仅是未发布的内容项。
以下是我如何初始化交付客户端以预览 ASP.net
中的内容
public static readonly IDeliveryClient _client =
DeliveryClientBuilder
.WithOptions(builder => builder
.WithProjectId("ID-PROJECT")
.UsePreviewApi("API-PREVIEW")
.Build())
.Build();
是的,这是预期的行为。根据 docs:
The Delivery Preview API returns the latest versions of content items allowing your content producers to view content items before they publish them or preview changes made to already published content items.
正如标题所说,为什么交付 API 还显示已发布的内容,而不仅仅是未发布的内容项。 以下是我如何初始化交付客户端以预览 ASP.net
中的内容public static readonly IDeliveryClient _client =
DeliveryClientBuilder
.WithOptions(builder => builder
.WithProjectId("ID-PROJECT")
.UsePreviewApi("API-PREVIEW")
.Build())
.Build();
是的,这是预期的行为。根据 docs:
The Delivery Preview API returns the latest versions of content items allowing your content producers to view content items before they publish them or preview changes made to already published content items.