AstroWay/api v2.254.12 · vi
tất cả hệ thống hoạt động bình thường
// sdk · Web Components

AstroWay web components (alpha)

Bánh xe Natal, phái ánh trăng, tương hợp, tarot và cung hoàng đạo dưới dạng các phần tử HTML thuần cho bất kỳ trang nào: chỉ một thẻ <script> từ CDN, hoặc npm install. Các biểu đồ được vẽ bằng cùng mã như API, vì vậy bánh xe trên trang của bạn sẽ khớp với kết quả của /v1/render. Alpha: tên thuộc tính có thể vẫn thay đổi trước 1.0.

// 01 / install

Cài đặt

npm install @astroway/ui@alpha
pnpm pnpm add @astroway/ui
yarn yarn add @astroway/ui
CDN <script type="module" src="https://cdn.jsdelivr.net/npm/@astroway/ui/dist/cdn/index.js"></script>

import: import '@astroway/ui';

// 02 / highlights

Điểm nổi bật

// 03 / first request

Yêu cầu đầu tiên

<script type="module" src="https://cdn.jsdelivr.net/npm/@astroway/ui/dist/cdn/index.js"></script>

<!-- keyless: the moon phase in the visitor's language -->
<aw-moon-phase lang="uk"></aw-moon-phase>

<!-- a publishable pk_ key bound to your domain, credit cap and endpoint list -->
<aw-natal-wheel api-key="pk_live_..." date="1990-07-14" time="14:30"
  latitude="50.45" longitude="30.52" timezone-offset="3"></aw-natal-wheel>

Bắt đầu với Web Components

10.000 credits miễn phí mỗi tháng. SDK mã nguồn mở, được tạo từ OpenAPI 3.1, luôn đồng bộ với backend.

99,9% SLA · gói trả phí · 30 ngày trạng thái →