/saelem

GraphQL Horoscope API for Skyra

Primary LanguageTypeScriptMIT LicenseMIT

logo

Saelem

Horoscope API for Skyra

GitHub npm

Support Server


Description

Horoscope query GraphQL API for Skyra

Key Features

Installation

Install client side typings from yarn or npm:

yarn add -D @skyra/saelem
npm install -D @skyra/saelem

Usage

import { Query } from '@skyra/saelem';

interface SaelemResponse<K extends keyof Omit<Query, '__typename'>> {
	data: Record<K, Omit<Query[K], '__typename'>>;
}

fetch('http://localhost:8284', {
	method: 'POST',
	headers: {
		'Content-Type': 'application/json'
	},
	body: JSON.stringify({
		query: `
      {
          getHoroscope(sunsign: aries) {
              prediction
              intensity
              keywords
              mood
              rating
              date
          }
      }
    `
	})
})
	.then((res) => res.json() as SaelemResponse<'getHoroscope'>)
	.then((json) => console.log(json.data));

Buy us some doughnuts

Skyra Project is open source and always will be, even if we don't get donations. That said, we know there are amazing people who may still want to donate just to show their appreciation. Thanks you very much in advance!

We accept donations through Patreon, BitCoin, Ethereum, and Litecoin. You can use the buttons below to donate through your method of choice.

Donate With QR Address
Patreon PatreonImage Click Here
PayPal PayPalImage Click Here
BitCoin BitcoinImage 3JNzCHMTFtxYFWBnVtDM9Tt34zFbKvdwco
Ethereum EthereumImage 0xcB5EDB76Bc9E389514F905D9680589004C00190c
Litecoin LitecoinImage MNVT1keYGMfGp7vWmcYjCS8ntU8LNvjnqM

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jeroen Claassens

πŸ’» πŸ“– πŸš‡ πŸ“† ⚠️

Antonio RomΓ‘n

πŸ“†

Skyra

πŸš‡

depfu[bot]

🚧

This project follows the all-contributors specification. Contributions of any kind welcome!