Public
Documentation Settings

Top-Kal

POSTvote & rewards generate

http://api.top-kal.com/api/generate/vote-rewards-token

Generating Token, Response in json. error or success, in success case : you will receive a full url to redirect user to it.

HEADERS
Authorization

base64_encode({{api_key}}:{{$secret_key}})

its in bse64_encode(api_key:secret_key) encrpytion

Bodyurlencoded
callback

http://localhost/vote-rewards.php?return={RETURNEDCODE}

account_unique_id

25

Example Request
curl
curl --location 'http://api.top-kal.com/api/generate/vote-rewards-token' \
--header 'Authorization: MDI2NDRlMzk3YThiNjk5MDEwZTVjN2FjY2I5YWM5YmE6UTQ1aWU1QWg0MUhwYXdy' \
--data-urlencode 'callback=http://localhost/vote-rewards.php?return={RETURNEDCODE}' \
--data-urlencode 'account_unique_id=25'
200 OK
Example Response
json
{
  "response": {
    "success": "https://top-kal.com/server/U7T6?token=o547y9RIIQj29LTrXkivkyPnmlXp_wCgAih5PqXLdjakTSdv-VU7xabLYGqL06RWccN1J2yzSAra5-AIWLghy1mTR5QdVjQGhEuamUQnK8v-mOS8oUcpz3E1in7R2ffsjbfYX-vaPc5lL_c1TAE6RMOe1OwZpKRK2Qnj7ufrA4jDVr6x47nz0Ptk8iWwv9ZlbgXgHayeChGTw-n1fG_LtPooyx_78jWq0J_HvQ3boqqELnHXY9S9QERYfVGz3JTcgBRsXOcY2O9ynKpVKX7l-KrXQqbcdTXltBGTBYA2uDQ#/vote"
  }
}
Date

Sun, 23 Jun 2019 19:21:26 GMT

Content-Type

text/html; charset=UTF-8

Transfer-Encoding

chunked

Connection

keep-alive

X-Powered-By

PHP/7.1.28

Vary

Authorization,Accept-Encoding,User-Agent

Server

cloudflare

CF-RAY

4eb8d332ef519de9-ATH

Content-Encoding

gzip

POSTvote & rewards verify

http://api.top-kal.com/api/verify/vote-rewards-token

confirm token and vote , you can give out rewards in success response

HEADERS
Authorization

base64_encode({{api_key}}:{{$secret_key}})

its in bse64_encode(api_key:secret_key) encrpytion

Bodyurlencoded
returned_code

0xTQ0xB50xO00xDO0x6R0xTZ0xKE0x4K0xN00x050xTZ0xRT0xKE0xZ70x890xTQ0xGL0x6R0x4C0xKB0xKM0xPB0x020x3L0x890xU70xMZ0xJ40x7V0xRT0x7Q0xPB0xEA0xRT0xCD0x7V0xYV0x4K0xLD0xN00x240xYV0xJ4

the returned code for confirmation by top-kal.com

Example Request
curl
curl --location 'http://api.top-kal.com/api/verify/vote-rewards-token' \
--header 'Authorization: MDI2NDRlMzk3YThiNjk5MDEwZTVjN2FjY2I5YWM5YmE6UTQ1aWU1QWg0MUhwYXdy' \
--data-urlencode 'returned_code=0xTQ0xB50xO00xDO0x6R0xTZ0xKE0x4K0xN00x050xTZ0xRT0xKE0xZ70x890xTQ0xGL0x6R0x4C0xKB0xKM0xPB0x020x3L0x890xU70xMZ0xJ40x7V0xRT0x7Q0xPB0xEA0xRT0xCD0x7V0xYV0x4K0xLD0xN00x240xYV0xJ4'
200 OK
Example Response
html
{
  "response": {
    "error": "returned code is may be invalid , incorrect or expired."
  }
}
Date

Mon, 24 Jun 2019 00:13:31 GMT

Content-Type

text/html; charset=UTF-8

Transfer-Encoding

chunked

Connection

keep-alive

X-Powered-By

PHP/7.1.28

Vary

Authorization,Accept-Encoding,User-Agent

Server

cloudflare

CF-RAY

4eba7f0d296d9ea9-ATH

Content-Encoding

gzip