# zoolife_api

> Zoo Life API

Latest version **1.0.5** (published 2022-05-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install zoolife_api
pnpm add zoolife_api
yarn add zoolife_api
bun add zoolife_api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-05-27 |
| First published | 2022-05-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Midngit Wolf |
| Maintainers | midnightwolf |
| Keywords | zoolife, zoo, api |

## Links

- npm: https://www.npmjs.com/package/zoolife_api
- Repository: https://github.com/MidnightWolf420/ZooLifeAPI
- Homepage: https://github.com/MidnightWolf420/ZooLifeAPI#readme
- Issues: https://github.com/MidnightWolf420/ZooLifeAPI/issues
- npm.io page: https://npm.io/package/zoolife_api

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.27.2

## Recent versions

- 1.0.5 (latest) — 2022-05-27
- 1.0.4 — 2022-05-27
- 1.0.3 — 2022-05-27
- 1.0.2 — 2022-05-27
- 1.0.1 — 2022-05-27
- 1.0.0 — 2022-05-27

## README

# ZooLifeAPI

* [Installation](#installation)
* [Common Usage](#common-usage)
    - [Login](#login)
    - [Get Latest Version](#get-latest-version)
    - [Get Version Changelog](#get-version-changelog)
    - [Get Schedules](#get-schedules)
	- [Get Zoos](#get-zoos)
	- [Get Habitats](#get-habitats)
	- [Get Meets](#get-meets)

## Installation
```
npm install zoolife_api --save
```

## Common Usage

```js
const { login, getZooSlug, getHabitatSlug, compareTwoStrings, getZoos, getHabitats, getMeets, getLatestVersion, getVersionChangeLog, getSchedules } = require('zoolife_api');
```

### Login

```js
login("email", "password").then(res => {
    console.log(`Logged In As ${res.data.user.username}`);
    //zl_session is res.zl_session
    //user data is res.data
})
```

### Get Latest Version

```js
getLatestVersion().then(version => {
    console.log(version);
})
```

### Get Version Changelog

```js
getVersionChangelog(version).then(data => {
    console.log(data);
})
```

### Get Schedules

```js
getSchedules("05/27/2022 12:00:00", "05/28/2022 9:00:00", zl_session).then(data => {
    console.log(data);
})
```

### Get Zoos

```js
getZoos().then((data) => {
    console.log(data);
})
```
or
```js
getZoos("Toronto Zoo").then((data) => {
    console.log(data);
})
```

### Get Habitats

```js
var habitats = await getHabitats(null, "Amur Leopards", zl_session);
console.log(habitats);
```
or
```js
var habitats = await getHabitats(null, null, zl_session);
console.log(habitats);
```
or
```js
var habitats = await getHabitats("Toronto Zoo", null, zl_session);
console.log(habitats);
```

### Get Meets

```js
var habitats = await getHabitats(null, "Amur Leopards", zl_session);
var meets = await getMeets(habitats._id, zl_session);
console.log(meets);
```

---
_Source: https://npm.io/package/zoolife_api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
