Skip to content

EliasDevis/datolite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datolite

Unofficial client to Topaz24 mobile API.

It uses apk.topaz24.pl/api to get the data.

Installation

npm install datolite

Example

import { getAdvice } from "topaz-api";

console.log(await getAdvice(1));
// ===>
// {
//   id: 1,
//   title: "Title",
//   teaser: "<p>Teaser</p>",
//   image: {
//     extension: "jpg",
//     name: "99999999-9999-4e99-9999-999999999999",
//   },
//   stickOnCarousel: false,
//   showOnlyInCarousel: false,
//   adviceType: {
//     id: 1,
//     name: "Przepis"
//   },
//   content: "<p>Content</p>",
//   orderInCarousel: null,
//   ingredients: [
//     {
//       id: 10,
//       name: "Name",
//       product: {//..}
//     }
//   ],
//   createDate: Date
// }