Add a domain to the blacklist

http://api.kopeechka.store/domain-add-blacklist?token=$TOKEN&domain=$DOMAIN&site=$SITE&expire=$EXPIRE&type=$TYPE&api=2.0

$EXPIRE - If you need the domain not to be issued for some time, and then automatically reappear in the output - in the $EXPIRE parameter, specify the time in UNIXTIME when we need to delete it.

$SITE - The site to which the blacklist belongs.

$DOMAIN - The domain that we add to the blacklist.

$TOKEN - API key from kopeechka.store

$TYPE - Specify in what form to give the answer (JSON (by default) / TEXT )

Answer:

JSON

{"status":"OK"}

TEXT

OK

Possible errors:

  • Invalid token

JSON

{"status":"ERROR","value":"BAD_TOKEN"}

TEXT

ERROR|BAD_TOKEN

  • Invalid site

JSON

{"status":"ERROR","value":"BAD_SITE"}

TEXT

ERROR|BAD_SITE

  • We do not have such a domain/domain zone.

JSON

{"status":"ERROR","value":"BAD_DOMAIN"}

TEXT

ERROR|BAD_DOMAIN

Have you figured it out? Rather try :)