Join And Get Free Trial!

getBalance#


getBalance yönteminin açıklaması

API uç noktası: https://api.nextcaptcha.com/getBalance

yöntem: POST

İçerik türü: application/json

İstek özellikleri#

isimtipGerekliTanım
clientKeySicimEvetAPI anahtarınız

Örnek talep#

{
   "clientKey": "api key"
}

Cevap örneği#

{
   "errorId": 0,
   "balance": "12.34"
}

Örnek Kod#

# https://github.com/nextcaptcha/nextcaptcha-python
 
import os
import sys
from nextcaptcha import NextCaptchaAPI
 
client_key = os.getenv('NEXTCAPTCHA_KEY', "YOUR_CLIENT_KEY")
 
api = NextCaptchaAPI(client_key=client_key)
try:
  balance = api.get_balance()
except Exception as e:
  sys.exit(e)
 
else:
  sys.exit('Account balance: ' + str(balance))