Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bipoza committed Dec 9, 2022
1 parent 5285f46 commit 4336c37
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# NahieranJS

Proiektu hau [@erral](https://github.com/erral)-en https://github.com/erral/eitbapi-react proiektuan oinarrituta dago.

Proiektu honen helburua Nahieran-eko APIa erabiltzeko beharrezkoak diren Javascript funtzioak lortzea da.

Adibideak:

````JS
import { getTVCategories, getTVCategory } from "nahieran-js";

getTVCategories().then(res => {
console.log("Response: ", res);
// Response:
// {
// "count": 12,
// "timestamp": "2022-12-09 20:20:58",
// "categories": [
// {
// "id": 12,
// "slug": "PELICULAS",
// "eu": "Zinea",
// "es": "Cine",
// "fr": null,
// "en": "Cinema"
// },
// {
// "id": 14,
// "slug": "ACTUALIDAD",
// "eu": "Albistegiak",
// "es": "Actualidad",
// "fr": null,
// "en": "News"
// },
// ...
// ]}
}, err => {
console.error("Response error: ", err);
});

getTVCategory(category_slug).then(res => {
console.log("Response: ", res);
}, err => {
console.error("Response error: ", err);
});
````

0 comments on commit 4336c37

Please sign in to comment.