Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/solufyapp/evolution-sdk

Unofficial SDK for Evolution Whatsapp API
https://github.com/solufyapp/evolution-sdk

Last synced: about 2 months ago
JSON representation

Unofficial SDK for Evolution Whatsapp API

Awesome Lists containing this project

README

        

@solufy/evolution-sdk

Unofficial SDK for the Evolution Whatsapp API (v2).



NPM License
NPM Downloads

NPM Version


## Installation

```bash
npm install @solufy/evolution-sdk
// or
yarn add @solufy/evolution-sdk
// or
pnpm add @solufy/evolution-sdk
```

## Getting Started

```ts
import { EvolutionClient } from "@solufy/evolution-sdk"
// const { EvolutionClient } = require("@solufy/evolution-sdk")

const cccccccccc = new EvolutionClient({
serverUrl: "Your server url",
instance: "Your instance",
token: "Global api key or instance token"
})
```

## Features

- **Check numbers**

```ts
client.chats.check("551199999999", "552299999999")
```

- **Find chats and groups**

```ts
client.chats.findAll()

client.groups.findAll()
client.groups.findByJid("[email protected]")
client.groups.findByInviteCode("0000000000000000000000")
```

- **Send messages**

There are available these types of messages: **audio**, **contact**, **document**, **image**, **location**, **poll**, **sticker**, **text**, **video** and **voice**.

```ts
client.messages.sendText({
number: "+551199999999",
text: "Hi!",
delay: 1000,
})
```

## API Documentation

Check the [official API documentation](https://doc.evolution-api.com/v2) for more information about their service.

## Contributing

Feel free to contribute with suggestions or bug reports at our [GitHub repository](https://github.com/solufyapp/evolution-sdk).

## Authors

- [@joaotonaco](https://github.com/joaotonaco)