Skip to content

Latest commit

 

History

History

api-sample

Reference implementation of BTCPool dependent Web API

users.list_id_api_url in sserver.cfg

Static User List

userlist.php

User List with Automatic Registration Enabled

userlist-autoreg.php

UserAutoRegAPI.URL in Init User Coin

It is used with the userlist-autoreg.php above.

autoreg.php

User List with POOL__USER_DEFINED_COINBASE=ON

user-list-coinbase-withtime

UserCoinMapURL in Switcher API Server

usercoin.php

How to quickly create a web server based on the script?

You can use PHP-CLI to quickly create a web server. Suppose you are using Ubuntu or Debian:

mkdir -p /var/www/html
cp *.php /var/www/html
apt install php-cli
php -S localhost:8000 -t /var/www/html

Then you can set list_id_api_url ="http://localhost:8000/userlist.php".

Note: the performance of PHP-CLI's web server is very poor, don't use it in a production environment.