Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class API
implements IAPI
import { API } from "https://deno.land/x/yextpages@pages@1.1.4/slugManager/api.ts";

Constructors

new
API(apiKey: string, config: { v?: string; env?: "sandbox" | "production"; })

Properties

apiKey: string
baseUrl: string
v: string

Methods

constructRequestUrl(path: string, additionalParams?: URLSearchParams)
listEntities<EntityType = BaseEntity>(additionalParams?: URLSearchParams)
updateField<EntityType = BaseEntity>(
id: string,
locale: string,
field: string,
value: string,
)