https://github.com/basemax/samplecaptchaapi
Implementing a captcha service using PHP and javascript to can use it anywhere such as Web.
https://github.com/basemax/samplecaptchaapi
api-captcha captcha captcha-api captcha-service contest contest-matno contest-programming javascript js matno matno-contest php
Last synced: 5 months ago
JSON representation
Implementing a captcha service using PHP and javascript to can use it anywhere such as Web.
- Host: GitHub
- URL: https://github.com/basemax/samplecaptchaapi
- Owner: BaseMax
- License: gpl-3.0
- Created: 2020-02-29T13:47:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-09T09:57:01.000Z (over 5 years ago)
- Last Synced: 2025-07-30T08:29:48.681Z (5 months ago)
- Topics: api-captcha, captcha, captcha-api, captcha-service, contest, contest-matno, contest-programming, javascript, js, matno, matno-contest, php
- Language: PHP
- Size: 179 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thin Captcha
# Sample Captcha API
Implementing a **captcha service** using PHP and javascript to can use it anywhere such as Web.
## Using
We did create one example project in `example/` directory.

### Create captcha
Every requests need `token` and `key` value in Headers.
http://localhost/matno3/?method=create
```json
{
status: "success",
message: "",
result: {
code: "klk8gab4tkcmemvk1dj7tzsskh4xw3rf2153l1he9l92o9bgfa"
}
}
```
### Verify a captcha
http://localhost/matno3/?method=verify&value=707&code=klk8gab4tkcmemvk1dj7tzsskh4xw3rf2153l1he9l92o9bgfa
```json
{
status: "failed",
message: "Your session is not valid!"
}
```
http://localhost/matno3/?method=verify&value=7636&code=klk8gab4tkcmemvk1dj7tzsskh4xw3rf2153l1he9l92o9bgfa
```json
{
status: "success",
message: "You are wellcome!",
result: {
token: "tglu9ph4mssfdvt5s8hal3rggcvdy9nfintbpsn829vhpq9lmc"
}
}
```
### Done captcha using server-side programming language
http://localhost/matno3/?method=done&token=badvalue
```json
{
status: "failed",
message: "Your session is not valid!"
}
```
http://localhost/matno3/?method=done&token=tglu9ph4mssfdvt5s8hal3rggcvdy9nfintbpsn829vhpq9lmc
```json
{
status: "success",
message: "Enjoy from it, Done!"
}
```
---------
# Max Base
My nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers. ([Max Base](https://maxbase.org/))
## Asrez Team
A team includes some programmer, developer, designer, researcher(s) especially Max Base.
[Asrez Team](https://www.asrez.com/)