AstroWay/api v2.254.12 · it
tutti i sistemi sono operativi
// sdk · Web Components

AstroWay web components (alpha)

Ruota natale, fase lunare, compatibilità, tarocchi e oroscopo come semplici elementi HTML per qualsiasi sito: un tag <script> da un CDN, o npm install. I grafici sono generati dallo stesso codice dell'API, così una ruota nella tua pagina corrisponde a ciò che restituisce /v1/render. Alpha: i nomi degli attributi potrebbero ancora cambiare prima della 1.0.

// 01 / install

Installa

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>

importa: import '@astroway/ui';

// 02 / highlights

Funzionalità

// 03 / first request

Prima richiesta

<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>

Inizia con Web Components

10.000 crediti gratis al mese. SDK open-source, generato da OpenAPI 3.1, sempre sincronizzato con il backend.

99.9% SLA · piani a pagamento · 30d stato →