Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hejny/crypto-donate

Simple app in which you can poll via donating with crypto
https://github.com/hejny/crypto-donate

old utility

Last synced: 10 days ago
JSON representation

Simple app in which you can poll via donating with crypto

Awesome Lists containing this project

README

        

# 💸 Crypto donate

[![Quality of package Crypto donate](https://packagequality.com/shield/crypto-donate.svg)](https://packagequality.com/#?package=crypto-donate)
[![Known Vulnerabilities](https://snyk.io/test/github/hejny/crypto-donate/badge.svg)](https://snyk.io/test/github/hejny/crypto-donate)
[![Issues](https://img.shields.io/github/issues/hejny/crypto-donate.svg?style=flat)](https://github.com/hejny/crypto-donate/issues)
[![Socket](https://socket.dev/api/badge/npm/package/crypto-donate)](https://socket.dev/npm/package/crypto-donate)

Simple app in which you can poll via donating with crypto

`This project was not finished and also not maintained for a long time. So expect not very updated stuff.`

# API

## GET /donates

List all created donates

### Response
```json
{
"data": [
{
"uuid": "1de0ab2c-0b4e-4fe3-85e9-8f92ae4c64ec",
"name": "Irma",
"message": "Hi",
"currency": "BTC",
"address": "1CwHxeRP156GBgPDoKPWqYTQdExiX4xRBs",
"created": "2017-10-01 14:32:32"
}
]
}
```

## POST /donates
Creates new donate.

### Request
```json
{
"name":"Irma",
"message":"Hi",
"currency":"BTC"
}
```

### Response
```json
{
"data": {
"uuid": "1de0ab2c-0b4e-4fe3-85e9-8f92ae4c64ec",
"name": "Irma",
"message": "Hi",
"currency": "BTC",
"address": "1CwHxeRP156GBgPDoKPWqYTQdExiX4xRBs",
"created": "2017-10-01 14:32:32"
}
}
```

## GET /donates/[:uuid]

Get information + received ammount of 1 donate.

### Response
```json
{
"uuid": "1de0ab2c-0b4e-4fe3-85e9-8f92ae4c64ec",
"name": "Irma",
"message": "Hi",
"currency": "BTC",
"address": "1CwHxeRP156GBgPDoKPWqYTQdExiX4xRBs",
"created": "2017-10-01 14:32:32",
"received": 0
}
```

## GET /donates-payed

List all payed donates.

### Request

You can add these GET parameters to modify request:

**start_time**
Timestamp of begining.
Minimum value is 1. year ago maximum is now.
Default value is 1. year ago.

### Response
```json
{
"data": [
{
"uuid": "1de0ab2c-0b4e-4fe3-85e9-8f92ae4c64ec",
"name": "Irma",
"message": "Hi",
"currency": "BTC",
"address": "1CwHxeRP156GBgPDoKPWqYTQdExiX4xRBs",
"created": "2017-10-01 14:32:32",
"amount": 0.123
}
]
}
```

## 🖋️ Contributing

I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can [☕ buy me a coffee](https://www.buymeacoffee.com/hejny) or [donate via cryptocurrencies](https://github.com/hejny/hejny/blob/main/documents/crypto.md).

You can also ⭐ star the crypto-donate package, [follow me on GitHub](https://github.com/hejny) or [various other social networks](https://www.pavolhejny.com/contact/).

## ✨ Partners

Collboard
     
WebGPT
     
Promptbook

[Become a partner](https://www.pavolhejny.com/contact/)