Excontentstack.Management (Excontentstack v0.5.1)

Contentstack Management API client.

Summary

Functions

Creates a new Contentstack Management API client.

Functions

new(opts \\ [])

Creates a new Contentstack Management API client.

Options

  • :api_key - Your stack's API key (required)
  • :delivery_token - Delivery token for the environment (required)
  • :environment - Publishing environment name (required, e.g., "live", "preview")
  • :region - Region (default: :us)
  • :master_locale - Master locale (required, e.g., "en-us")
  • :req_opts - Additional Req options (optional)
  • :configure_req - A function to customize the Req.Request pipeline (optional)

Examples

client = Excontentstack.Management.new(
  api_key: "...",
  management_token: "...",
  master_locale: "en-us"
)

# With custom request pipeline
client = Excontentstack.Management.new(
  api_key: "...",
  management_token: "...",
  master_locale: "en-us",
  configure_req: fn req ->
    Req.Request.append_request_steps(req, custom_step: &MyApp.my_step/1)
  end
)