# ejabberd-connector

> Connects to ejabberd through the console application.

Latest version **0.0.3** (published 2022-06-16) · 0 weekly downloads

## Install

```sh
npm install ejabberd-connector
pnpm add ejabberd-connector
yarn add ejabberd-connector
bun add ejabberd-connector
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-06-16 |
| First published | 2012-11-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | billstron |

## Links

- npm: https://www.npmjs.com/package/ejabberd-connector
- npm.io page: https://npm.io/package/ejabberd-connector

## Dependencies (1)

- [express](https://npm.io/package/express.md) 3.x

## Recent versions

- 0.0.3 (latest) — 2012-12-20
- 0.0.2 — 2012-11-04
- 0.0.1 — 2012-11-04

## README

# Ejabberd Connector 
This is used to control an Ejabberd server over http REST using a node.js server.


## API Documentation

The requests are authenticated using a secret passed in the query parameters:
	id={secret}

POST http://{server address}/check-account:
* Input -- Json body with a single array parameter named "args".  The array should have 2 arguments -- user and host.
 
	POST http://heads.com:7564/check-account?id="secretAPICode"
	{
		"args" : [
			"butts",
			"heads.com"
		]
	}

* Output -- Json body with a single boolean "response" variable indicating if the account exists on the server.

	{
		"response" : true
	}

POST http://{server address}/check-password:
* Input -- Json body with a single array parameter named "args".  The array should have 3 arguments -- user, host, and password.
	
	POST http://heads.com:7564/check-password?id="secretAPICode" 
	{
		"args" : [
			"butts",
			"heads.com",
			"secretOfTheButts"
		]
	}

* Output -- Json body with a single boolean "response" variable indicating if the account/password are correct.

	{
		"response" : true
	}

POST http://{server address}/change-password:
* Input -- Json body with a single array parameter named "args".  The array should have 3 arguments -- user, host, and new password.
 
	POST http://heads.com:7564/change-password?id="secretAPICode"
	{
		"args" : [
			"butts",
			"heads.com",
			"secretOfTheButts"
		]
	}
	
* Output -- Json body with a single boolean "response" variable indicating if the password was successfully changed.

	{
		"response" : true
	}

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