· 5 years ago · Aug 24, 2020, 07:00 AM
1<?php
2include "c_api.php";
3c_api::c_init("program key", "api key");
4
5if (isset($_POST["sub"])) {
6 if (c_api::c_all_in_one($_POST["token"])) {
7 //do something in case the request was successful
8 } else {
9 //do something in case the request wasn't successfull
10 }
11}
12?>
13
14<form method="post">
15 token : <br>
16 <input type="text" name="token"> <br>
17 <button name="sub">submit</button>
18</form>
19