Dimar FZC LLC
Flamingo Villas A-32-01-05-03 25314 United Arab Emirates, Ajman
+971585072431, /assets/img/icons/logo/logo.svg, [imeeli ti aabo]

Ilana API fun iṣiṣẹ pẹlu SMS-Activate

API jẹ ilana laarin sọfitiwia rẹ ati olupin wa

API nilo fun adaṣiṣẹ ilana gbigba sms, otp, ati pva ni ẹgbẹ rẹ

API wa ni ibamu patapata pẹlu awọn oju opo wẹẹbu oludije

Gbogbo awọn ibeere gbọdọ lọ si https://api.sms-activate.ai/stubs/handler_api.php

Ibeere POST tabi GET.

Gbogbo awọn ibeere gbọdọ ni bọtini API ni irisi paramita GET api_key

Gba imuse ilana naa silẹ ni php Gba imuse ilana ti a ti ṣetan silẹ ni Python

API Imuṣiṣẹ

Beere iye awọn nọmba foonu foju ti o wa
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getNumbersStatus&country=$country&operator=$operator

Awọn paramita:

$api_key - Kọkọ API

$country * - nọmba orilẹ-ede wo tabili

$operator * awọn nọmba oniṣẹ alagbeka, o le sọ awọn nọmba pupọ silẹ ti a ya sọtọ pẹlu awọn koma (wa nikan fun:

Rọsia
megafon, mts, beeline, tele2, rostelecom, eyikeyi
Ukraine
kyivstar, life, utel, mts, vodafone
Kazakhstan
tele2, beeline, activ, altel

** wa fun $country = 0, $country = 1, $country = 2

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{"vk_0":76,"ok_0":139,"wa_0":90,"vi_0":223,"tg_0":158,"wb_0":106,"go_0":182,"av_0":244,"av_1":211,"fb_0":107}
Nibiti akọle lẹhin dash jẹ orukọ iṣẹ naa, lẹhin ami iyasọtọ boya o ṣe pataki lati fi itọsọna kun. 0 - rara. 1 - bẹẹni.

Akojọ pipe ti awọn iṣẹ

Beere fun awọn orilẹ-ede oke nipasẹ iṣẹ FreePrice
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getTopCountriesByService&service=$service&freePrice=$freePrice

Awọn paramita:

$api_key - Kọkọ API

$service * - Iṣẹ wo tabili

* paramita ti ko dandan. Ti a ko ba sọ ọ, awọn orilẹ-ede oke fun gbogbo awọn iṣẹ ni a o fi han nipasẹ aiyipada.

$freePrice * - paramita ti ko dandan. Ti a ba pese e otitọ, iye ati idiyele yoo wa ni ipese gẹgẹbi Idiyele Ọfẹ

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{ 0: { "country: 0, "count": 43575, "price": 15.00, "retail_price": 30.00 }, ... }

$freePrice = otitọ:

{ 0: { "country: 0, "count": 43575, "price": 15.00, "retail_price": 30.00, "freePriceMap": { "15.00": 43242, "18.00": 333 } }, ... }
Iwadii iwontunwonsi
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getBalance

Ibeere iwontunwonsi pẹlu akanti cashback:

https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getBalanceAndCashBack

* n da iwontunwonsi pada ti o ka cashback ti a kojọpọ, ti a ba tiki apoti ayẹwo ninu eto akanti cashback 'Lo cashback fun imuṣiṣẹ'

Awọn paramita:

$api_key - Kọkọ API

IDAHUN:

ACCESS_BALANCE: 'iwontunwonsi akanti'

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ERROR_SQL - aṣiṣe sql-server

Beere awọn oniṣẹ ti o wa
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getOperators&country=$country

* da gbogbo awọn oniṣẹ ti o wa fun orilẹ-ede ti a fi ranṣẹ pada, ti orilẹ-ede ko ba ni a fi ranṣẹ - yoo da gbogbo awọn oniṣẹ ti o wa fun orilẹ-ede kọọkan pada

Awọn paramita:

$api_key - Kọkọ API

$country - koodu orilẹ-ede

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json:

{"status":"success", "countryOperators": {
"Country1Code": ["operator1Name","operator2Name","operator3Name", ...],
"Country2Code": ["operator1Name","operator2Name","operator3Name", ...],
...
}}

Apeere:

{"status":"success", "countryOperators": {
"0": ["beeline","megafon","mts", ...],
"1": ["life","mts","kyivstar","utel" ...],
...
}}

* ninu 'countryOperators' - koodu orilẹ-ede ni yoo jẹ bọtini naa

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ERROR_SQL - aṣiṣe sql-server

OPERATORS_NOT_FOUND - ko si awọn igbasilẹ ti a rii (fun apẹẹrẹ, orilẹ-ede ti ko si ni a fi ranṣẹ)

Beere fun awọn imuṣiṣẹ ti n ṣiṣẹ lọwọlọwọ
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getActiveActivations

Awọn paramita:

$api_key - Kọkọ API

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json:

{"status":"success", "activeActivations": [
{
"activationId" : "635468021",
"serviceCode" : "vk",
"phoneNumber" : "79********1",
"activationCost" : "12.50",
"activationStatus" : "4",
"smsCode" : ["CODE"],
"smsText" : "[Your CODE registration code]",
"activationTime" : "2022-06-01 16:59:16",
"discount" : "0.00",
"repeated" : "0",
"countryCode" : "0",
"countryName" : "Russia",
"canGetAnotherSms" : "1",
}]

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ERROR_SQL - aṣiṣe sql-server

NO_ACTIVATIONS - ko ri awọn titẹ sii (ko si awọn imuṣiṣẹ ti n lọ lọwọlọwọ)

Beere nọmba kan FreePrice
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getNumber&service=$service&forward=$forward&operator=$operator&ref=$ref&country=$country&phoneException=$phoneException&maxPrice=maxPrice&useCashBack=$useCashBack&activationType=$activationType&language=$language&userId=$userId

Awọn paramita:

$api_key - Kọkọ API

$service - iṣẹ fun aṣẹ wo tabili

$forward * - ṣe o nilo lati beere nọmba pẹlu gbigbe iwaju?

* paramita ti kii ṣe dandan, gba 0 (ma ṣe ṣiṣẹ, ti a fi idi rẹ mulẹ laifọwọyi), 1 (ṣiṣẹ)

$maxPrice * - idiyele ti o ga julọ ti o fẹ ra nọmba kan ni Idiyele Ọfẹ

* paramita ti kii ṣe dandan, ti a ko ba sọ ọ, rira yoo waye ni idiyele deede

$phoneException * - yiyọ awọn afiwaju fun awọn nọmba Russia kuro. Tẹ pẹlu koma. Ọna kika igbasilẹ: koodu orilẹ-ede ati awọn nọmba 3 si 6 ti ibojuwo (fun apẹẹrẹ, 7918, 7900111). Iye laifọwọyi ni iye ti a sọ ninu akọọle naa.

$operator* jẹ́ olùpèsè fónù alágbéká fún nọ́mbà náà, o lè sọ ọ̀pọ̀lọpọ̀ wọn pẹ̀lú kọ́mà (ó wà fún ** nìkan)

$activationType - irú ìṣiṣẹ́: 0 - pẹ̀lú SMS (àìyípadà), 1 - pẹ̀lú nọ́mbà, 2 - pẹ̀lú ohùn

$language - èdè tí a ń lo fún kíkó data (a nílò rẹ̀ fún ìṣiṣẹ́ pẹ̀lú ohùn) wo tabili

$userId * - ID olùmúlò tí yóò jẹ́ dídènà fún ìwádìí ìṣiṣẹ́ tí kò dára, ṣùgbọ́n àkọọ́lẹ̀ onítajà tuntun kò ní kan.

Rọsia
megafon, mts, beeline, tele2, rostelecom, eyikeyi
Ukraine
kyivstar, life, utel, mts, vodafone
Kazakhstan
tele2, beeline, activ, altel

* aaye afikun

** wa fun $country = 0, $country = 1, $country = 2

$ref - gbé ID ìtọ́kasí sí i.

$country - nọmba orilẹ-ede wo tabili

$useCashBack* - gba iye 'true' tàbí 'false', tí paramita bá jẹ́ 'true', rírà nọ́mbà yóò lo owó cashback. Nígbà tí owó cashback bá tán, gbogbo rírà tókù yóò lo owó inú àkọọ́lẹ̀. Ó ṢE PÀTÀKÌ láti rántí pé gbogbo rírà tókù yóò lo cashback kí ó tó lo owó àkọọ́lẹ̀ (bó tilẹ̀ jẹ́ pé o fi paramita 'false' lé e lórí).

* paramita afikun, gba 'true'

Nípa gígba nọ́mbà nípasẹ̀ API, o ti gba àdéhùn pẹ̀lú àwọn òfin iṣẹ́ àwọn òfin iṣẹ́

ASISE TI O ṢEEṢE:

OWO TÍ Ó PỌ̀ JÙ:$min- owó tí ó pọ̀ jù tí o sọ kéré ju èyí tí a gba láàyè

$min - owó tí ó kéré jù tí a gba láàyè

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

ÌRANṢẸ́ TÍ KÒ TỌ́ - orúkọ ìranṣẹ́ tí kò tọ́

BAD_KEY - kọkọrọ API ti ko tọ

ERROR_SQL - aṣiṣe sql-server

A TI DÈNÀ:'YYYY-m-d H-i-s' - àkókò tí àkọọ́lẹ̀ náà ti di dídènà

NỌ́MBÀ ÌYÀSỌ́TỌ̀ TÍ KÒ TỌ́ - àwọn prefix ìyàsọtọ́ tí kò tọ́

OWO KÒ TÓ FÚN ÍWÁJÚJÚ - owó kò tó láti rà íwájújú ìpè

ÌDÍNÀ ÀWỌN IKANNI - àkọọ́lẹ̀ ti di dídènà

KÒ SÍ NỌ́MBÀ - kò sí nọ́mbà kankan

Tí o bá gbìyànjú láti gba nọ́mbà olùpèsè kan pàtó tí kò ṣiṣẹ́ ní orílẹ̀-èdè tí o yàn tàbí tí kò ní ìranṣẹ́ tí o yàn, nọ́mbà olùpèsè àkọ́kọ́ tí ó bá àwọn ìbéèrè rẹ mu ni yóò hàn

Ìbéèrè Nọ́mbà V2 FreePrice
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getNumberV2&service=$service&forward=$forward&operator=$operator&ref=$ref&country=$country&phoneException=$phoneException&maxPrice=maxPrice&activationType=$activationType&language=$language&userId=$userId

ọ̀nà yìí ń ṣiṣẹ́ bíi ọ̀nà náà getNumber, ó gba àwọn paramita kan náà àti àwọn afikun tí a sọ ní ìsàlẹ̀, ṣùgbọ́n ó ń dá ìwífún ìṣiṣẹ́ afikun padà

Awọn paramita:

$orderId- id ìṣiṣẹ́ láti inú ètò onítajà. Nígbà rírà, a máa ń fi dátà yìí wéra pẹ̀lú id ìṣiṣẹ́ àti onítajà nínu ètò wa. Nípa báyìí, a fẹ́ rí i dájú pé a kì í ṣe òrò kan náà lẹ́ẹ̀mejì (a kì í ṣe òrò kan náà lẹ́ẹ̀kejì).

IDAHUN:

Ti ibeere ba ti ṣeéṣe, idahun yoo wa ni iru eyi:

{
"activationId": 635468024,
"phoneNumber": "79584******",
"activationCost": "12.50",
"countryCode": "0",
"canGetAnotherSms": "1",
"activationTime": "2022-06-01 17:30:57",
"activationOperator": "mtt"
}

Tí o bá gbìyànjú láti gba nọ́mbà olùpèsè kan pàtó tí kò ṣiṣẹ́ ní orílẹ̀-èdè tí o yàn tàbí tí kò ní ìranṣẹ́ tí o yàn, nọ́mbà olùpèsè àkọ́kọ́ tí ó bá àwọn ìbéèrè rẹ mu ni yóò hàn

ASISE TI O ṢEEṢE:

ORDER_ALREADY_EXISTS- a ti da aṣẹ naa silẹ tẹlẹ

Webhooks

Nigba ti o ba gba SMS si nọmba kan, ti o ba ti mu iṣẹ Webhooks ṣiṣẹ ninu eto rẹ, a yoo fi alaye nipa SMS naa ranṣẹ si awọn adirẹsi ti o sọ pato nipa lilo ibeere POST

IDAHUN:

Iru idahun yoo jẹ bii eyi:

{
"activationId": 635468024,
"service": "go",
"text": "Your sms text",
"code": "Your sms code",
"country": 0,
"receivedAt": "2022-06-01 17:30:57",
}

Nigba ti a ba n firanṣẹ ibeere, a yoo duro de idahun lati ọdọ iwe afọwọkọ rẹ pẹlu ipo HTTP 200. Ti iwe afọwọkọ rẹ ko ba dahun, a yoo fi ibeere ranṣẹ laarin wakati 2, ṣugbọn kii yee ju igba 8 lọ.

O le mu iṣẹ yii ṣiṣẹ ninu eto profaili

Bíbéèrè nọ́mbà fónù fojú kan fún àwọn iṣẹ́ púpọ̀
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getMultiServiceNumber&multiService=$service&multiForward=$forward&operator=$operator&ref=$ref&country=$country

Awọn paramita:

$api_key - Kọkọ API

$service - iṣẹ fun aṣẹ wo tabili

$forward * - ṣe o nilo lati beere nọmba pẹlu gbigbe iwaju?

* paramita ti a le yan, awọn ohun kikọ ti a n yipada si wa ni pipin pẹlu koma, nọmba awọn nọmba ti a n yipada si gbọdọ baamu nọmba awọn iṣẹ ti a firanṣẹ ninu paramita naa $service. A gba laaye lati fi iṣẹ kan ṣoṣo pẹlu itọsọna ranṣẹ, fun apẹẹrẹ "0,1,0,0" - tọ, "0,1,1,0" - aiṣedeede. O gba 0 (ma ṣe, abiyẹ), 1 (ṣe)

$operator * - olupilẹṣẹ alagbeka ti nọmba naa, o le sọ awọn nọmba pupọ silẹ ti a pin pẹlu koma (o wa fun ** nikan):

Rọsia
megafon, mts, beeline, tele2, rostelecom, eyikeyi
Ukraine
kyivstar, life, utel, mts, vodafone
Kazakhstan
tele2, beeline, activ, altel

$ref - gbé ID ìtọ́kasí sí i.

$country - nọmba orilẹ-ede wo tabili

Nípa gígba nọ́mbà nípasẹ̀ API, o ti gba àdéhùn pẹ̀lú àwọn òfin iṣẹ́ àwọn òfin iṣẹ́

IDAHUN:

KÒ SÍ NỌ́MBÀ - kò sí nọ́mbà kankan

NO_BALANCE - owo ninu akọọlẹ ti tan

{{'phone':phone,'activation':activation,'service':service},
{'phone':phone,'activation':activation,'service':service}}
, nibiti (phone - id awọn iṣẹ, activation - Nọmba foonu, service - Iṣẹ)

ASISE TI O ṢEEṢE:

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

ÌRANṢẸ́ TÍ KÒ TỌ́ - orúkọ ìranṣẹ́ tí kò tọ́

BAD_KEY - kọkọrọ API ti ko tọ

ERROR_SQL - aṣiṣe sql-server

A TI DÈNÀ:'YYYY-m-d H-i-s' - àkókò tí àkọọ́lẹ̀ náà ti di dídènà

Ìyípadà ipò ìmúṣiṣẹ́
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=$status&id=$id&forward=$forward

Awọn paramita:

$api_key - Kọkọ API

$id - ID Ifikunṣiṣẹ

$forward * - nọmba foonu si eyiti o fẹ yipada si

* a nilo rẹ nikan ti a ba ti kọja paramita pẹlu getNumber forward=1.

$status - ipo ifikunṣiṣẹ

1 - sọ fun nipa wiwa nọmba naa (a ti fi SMS ranṣẹ si nọmba naa)

3 - beere koodu miiran (lafowosi)

6 - pari ifikunṣiṣẹ *

8 - jabo otitọ pe a ti lo nọmba naa tẹlẹ ki o si fagilee ifikunṣiṣẹ naa

* ti ipo 'koodu ti gba' ba wa - o samisi i pe o ti ṣeéṣe daradara ki o si pari, ti 'igbaradi' ba wa - o pa a run ki o si samisi aṣiṣe, ti ipo 'nduro fun atunwi' ba wa - o gbe ifikunṣiṣẹ si SMS ti nduro

** Ko ṣeéṣe lati yi ipo ifikunṣiṣẹ pada fun eyiti a ti yan ọna ijẹrisi nipasẹ ipe ti nọmba naa ba ti de tẹlẹ

Imọye ti o rọrun nipa ilana iṣẹ pẹlu API:

Gbigba nọmba nipa lilo ọna getNumber, lẹhinna awọn iṣe wọnyi wa:

8 - fagilee ifikunṣiṣẹ (ti nọmba naa ko ba tọ fun ọ)

1 - sọ fun pe a ti fi SMS ranṣẹ (ayanfẹ)

Si ifikunṣiṣẹ pẹlu ipo 1:

8 - fagilee ifikunṣiṣẹ naa

Lẹsẹkẹsẹ lẹhin gbigba koodu naa:

3 - beere SMS miiran

6 - jẹrisi koodu SMS ki o si pari ifikunṣiṣẹ naa

Si ifikunṣiṣẹ pẹlu ipo 3:

6 - jẹrisi koodu SMS ki o si pari ifikunṣiṣẹ naa

IDAHUN:

ACCESS_READY - a ti jẹrisi pe nọmba naa ti ṣetan

ACCESS_RETRY_GET - ndúró fún SMS tuntun

ACCESS_ACTIVATION - iṣẹ́ náà ti ṣiṣẹ́ dáadáa

ACCESS_CANCEL - ìmúṣiṣẹ́ fagilé

ASISE TI O ṢEEṢE:

EARLY_CANCEL_DENIED - kò gbọdọ̀ fagilé nọ́mbà láàárín ìṣẹ́jú méjì àkọ́kọ́

ERROR_SQL - aṣiṣe sql-server

NO_ACTIVATION - ID ìmúṣiṣẹ́ kò sí

ÌRANṢẸ́ TÍ KÒ TỌ́ - orúkọ ìranṣẹ́ tí kò tọ́

BAD_STATUS - ipò tí kò tọ́

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

WRONG_ACTIVATION_ID - ID tí kò tọ́ tàbí ID kì í ṣe nọ́mbà.

Gba ipò ìmúṣiṣẹ́
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getStatus&id=$id

Awọn paramita:

$api_key - Kọkọ API

$id - ID Ifikunṣiṣẹ

IDAHUN:

STATUS_WAIT_CODE - ndúró fún SMS

STATUS_WAIT_RETRY: 'kóòdù tí kò bá mu, tí ó ti kọjá' - ndúró fún ìtumọ̀ kóòdù

STATUS_WAIT_RESEND - ndúró fún ìfiránṣẹ́ SMS lẹ́ẹ̀kansí *

* sọfitiwia gbọdọ̀ tẹ ìfiránṣẹ́ SMS lẹ́ẹ̀kansí kí ó sì yí ipò padà sí 6

STATUS_CANCEL - ìmúṣiṣẹ́ fagilé

STATUS_OK: 'kóòdù ìmúṣiṣẹ́' - ti gba kóòdù

ASISE TI O ṢEEṢE:

NO_ACTIVATION - ID ìmúṣiṣẹ́ kò sí

ERROR_SQL - aṣiṣe sql-server

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

Gba ipò ìmúṣiṣẹ́ Ẹ̀yà 2
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getStatusV2&id=$id

Awọn paramita:

$api_key - Kọkọ API

$id - ID Ifikunṣiṣẹ

IDAHUN:

Iru idahun yoo jẹ bii eyi:

{
"verificationType": 2,
"sms": {
"dateTime": "0000-00-00 00:00:00",
"code": "code",
"text": "sms text",
},
"call": {
"from": "phone",
"text": "voice text",
"dateTime": "0000-00-00 00:00:00",
"url": "voice file url",
"parsingCount": 1,
}
}

STATUS_CANCEL - ìmúṣiṣẹ́ fagilé

ASISE TI O ṢEEṢE:

NO_ACTIVATION - ID ìmúṣiṣẹ́ kò sí

ERROR_SQL - aṣiṣe sql-server

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

Gba ìtàn ìmúṣiṣẹ́
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getHistory&start=$start&end=$end&offset=$offset&limit=$limit

Awọn paramita:

$api_key - Kọkọ API

$start - àkókò ní ọ̀nà Unix Timestamp (àṣàyàn) - ọjọ́ wo ni láti ka ìmúṣiṣẹ́ bẹ̀rẹ̀

$end - àkókò ní ọ̀nà Unix Timestamp (àṣàyàn) - títí di ọjọ́ wo ni láti ka ìmúṣiṣẹ́

$offset - ìyàsọ́tọ̀ èròjà àkọ́kọ́ tí a dà sílẹ̀ nínú ìdáhùn. Àìpín ni 0

$limit - iye àwọn ìgbásílẹ̀ tí a dà sílẹ̀ tó pọ̀ jùlọ. Tó pọ̀ jùlọ ni 100. Àìpín ni 50.

IDAHUN:

Iru idahun yoo jẹ bii eyi:

[{
"id": 635468024,
"date": "2022-11-12 15:58:39",
"phone": "79918529716",
"sms": "sms":"["Your sms code"]",
"cost": 100 //Если активация не завершена, то cost = 0,
"status": "4",
}]

ASISE TI O ṢEEṢE:

ERROR_SQL - aṣiṣe sql-server

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

Gba TOP 10 orílẹ̀-èdè nípasẹ̀ iṣẹ́ kan
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getListOfTopCountriesByService&service=$service

Awọn paramita:

$api_key - Kọkọ API

$service - orúkọ iṣẹ́

IDAHUN:

Iru idahun yoo jẹ bii eyi:

[{
"country": 0,
"share": 50 - // (Purchases of the chosen service by country as a percentage of the total quantity of purchases at our service),
"rate": 50 - // (% of successful activations among the total number of activations by the country)
}]

ASISE TI O ṢEEṢE:

ERROR_SQL - aṣiṣe sql-server

BAD_KEY - kọkọrọ API ti ko tọ

WRONG_SERVICE - iṣẹ́ tí kò tọ́

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

Gba ipò ìpè tí ń wọlé
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getIncomingCallStatus&activationId=$id

Awọn paramita:

$api_key - Kọkọ API

$id - ID Ifikunṣiṣẹ

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{"status":"2","phone":false}

ÀWỌN IPÒ TÓ ṢE É ṢE:

2 - ìmúṣiṣẹ́ tuntun

3 - ti parí dáadáa

4 - ti fagilé

5 - ti padà

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

INVALID_ACTIVATION_ID - ID iṣiṣẹ ti ko tọ

Gba owó tó wà lọ́wọ́lọ́wọ́ nípasẹ̀ orílẹ̀-èdè
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getPrices&service=$service&country=$country

Awọn paramita:

$api_key - Kọkọ API

$serviceOrukọ kukuru fun iṣẹ naa (Aṣayan, laifọwọyi gbogbo awọn iṣẹ) wo tabili

$countryOrukọ koodu orilẹ-ede (Aṣayan, laifọwọyi gbogbo awọn orilẹ-ede) wo tabili

IDAHUN:

JSON - nkan ni ọna kika
{"Country":{"Service":{"cost":IyeOwo,"count":Iye"}}}

Gba owó tó yẹ fún àwọn iṣẹ́ fún ìjẹ́rísí
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getPricesVerification&service=$service

Awọn paramita:

$api_key - Kọkọ API

$serviceOrukọ kukuru fun iṣẹ naa (Aṣayan, laifọwọyi gbogbo awọn iṣẹ) wo tabili

IDAHUN:

JSON - nkan ni ọna kika
{"Service":{"Country":{"count":Iye,"price":"IyeOwo"}}}

Gba àkójọ gbogbo orílẹ̀-èdè
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getCountries

Awọn paramita:

$api_key - Kọkọ API

IDAHUN:

JSON - nkan ni ọna kika {{'Страна':{'id':0,'rus':"Россия","eng:"Russia","chn":"俄罗斯","visible":1,"retry":1,"rent":1,"multiService":1}},

nibi (

id : id orilẹ-ede;

rus : orukọ orilẹ-ede ni ede Russia;

eng : orukọ orilẹ-ede ni ede Gẹẹsi;

chn : orukọ orilẹ-ede ni ede China;

visible : 0 - orilẹ-ede ko han lori aaye ayelujara, 1 - o han;

retry : 0 - SMS tun ṣe KO si, 1 - o wa;

rent : 0 - orilẹ-ede ko ya, 1 - a ya;

multiService : 0-orilẹ-ede KO si fun iṣẹ pupọ, 1- o wa.)

Gba àkójọ gbogbo àwọn iṣẹ́
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getServicesList

Awọn paramita:

$api_key- Kọkọ API

$country *- ID Orilẹ-ede. Ti o ba ti kọja orilẹ-ede naa, a da awọn iṣẹ pada ti wọn ni idiyele fun orilẹ-ede ti a yan

$lang *- eyiti ede lati lo lati pese `name`. Awọn iye ti o ṣeeṣe: 'ru', 'en', 'es', 'cn'. Aiyipada jẹ 'en'

* paramita aṣayan

IDAHUN:

JSON - nkan ni ọna kika { "status": "success", "services": [ { "code": "aoo", "name": "Pegasus Airlines" } ] }

Iṣẹ́ àfikún fún àwọn nọ́mbà tí a ti darí sí ibòmíràn

Lẹhin ti o ba gba SMS akọkọ fun awọn nọmba ti a yipada, o le ra awọn iṣẹ miiran ti o jọmọ bii Yula, Yandex, Avito, tabi eyikeyi miiran

Iye owo fun iṣẹ afikun jẹ 5p nikan

https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getAdditionalService&service=$service&id=$id

Awọn paramita:

$api_key - Kọkọ API

$service - fun orukọ kukuru iṣẹ naa, wo tabili naa wo tabili

$id - ID Iṣiṣẹ Obinrin

IDAHUN:

ADDITIONAL:$id:$phone - a ti ṣẹda iṣiṣẹ tuntun ni aṣeyọri. Nibi ti ID jẹ ID fun iṣiṣẹ afikun, phone si jẹ nọmba foonu

ASISE TI O ṢEEṢE:

WRONG_ADDITIONAL_SERVICE - Iṣẹ afikun ti ko tọ (awọn iṣẹ fun gbigbe lọ nikan ni a gba laaye)

WRONG_ACTIVATION_ID - ID iṣiṣẹ obinrin ti ko tọ

WRONG_SECURITY - aṣiṣe waye nigbati a n gbiyanju lati fi ID iṣiṣẹ ranṣẹ lai si iyipada, tabi iṣiṣẹ ti pari/ti ko ni iṣiṣẹ

REPEAT_ADDITIONAL_SERVICE - aṣiṣe maa n waye nigbati a n gbiyanju lati paṣẹ iṣẹ ti a ti ra lẹẹkansii NO_BALANCE - Owo ko to

ERROR_SQL- aṣiṣe database, kan si iṣẹ alabara

Atunṣe iṣiṣẹ fun nọmba foju

Ti o ba ti ṣe iṣiṣẹ ni aṣeyọri lori nọmba naa, o le ṣe e lẹẹkansii.

Iye owo fun iṣiṣẹ afikun da lori orilẹ-ede ati iṣẹ naa. O le gba iye owo pato lati .

https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getExtraActivation&activationId=$activationId

Awọn paramita:

$api_key - Kọkọ API

$activationId - ID Iṣiṣẹ Obinrin

IDAHUN:

ACCESS_NUMBER:$id:$phone - a ti ṣẹda iṣiṣẹ tuntun ni aṣeyọri. Nibi ti $id jẹ ID fun iṣiṣẹ afikun, $phone si jẹ nọmba foonu

ASISE TI O ṢEEṢE:

RENEW_ACTIVATION_NOT_AVAILABLE- nọmba naa ko wa fun iṣiṣẹ afikun

WRONG_ACTIVATION_ID - ID iṣiṣẹ obinrin ti ko tọ

ERROR_SQL- aṣiṣe database, kan si iṣẹ alabara

NEW_ACTIVATION_IMPOSSIBLE- ko ṣeeṣe lati ṣe iṣiṣẹ afikun

NO_BALANCE - ko si owo ninu akọọle naa

Gba idiyele fun iṣiṣẹ nọmba afikun

O le mọ boya nọmba naa wa fun iṣiṣẹ afikun ati gba idiyele rẹ

https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=checkExtraActivation&activationId=$activationId

Awọn paramita:

$api_key - Kọkọ API

$activationId - ID Iṣiṣẹ Obinrin

IDAHUN:

JSON - nkan ni ọna kika {'status': 'success', 'cost':200,"service":"tw","phone":777777777,"country":14},

ASISE TI O ṢEEṢE:

RENEW_ACTIVATION_NOT_AVAILABLE- nọmba naa ko wa fun iṣiṣẹ afikun

WRONG_ACTIVATION_ID - ID iṣiṣẹ obinrin ti ko tọ

SIM_OFFLINE - Kaadi SIM wa ni offline

Àtúnyẹ̀wò ohùn lẹ́ẹ̀kansí
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=parseCall&id=$id&newLang=$newLang

Awọn paramita:

$api_keyapi key

$id - ID Ifikunṣiṣẹ

$newLang - ede titun fun kikojade wo tabili

IDAHUN:

Iru idahun yoo jẹ bii eyi:

{
"result": "OK"
}

STATUS_CANCEL - ìmúṣiṣẹ́ fagilé

NO_CALL- a ko gba ipe kankan

PARSE_COUNT_EXCEED- opin igbiyanju itupalẹ (ti o pọ julọ jẹ 4)

ASISE TI O ṢEEṢE:

WRONG_ACTIVATION_ID - ID ti ko tọ, iṣiṣẹ ko si

ERROR_SQL - aṣiṣe sql-server

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

Yá Api

Béèrè fún àwọn orílẹ̀-èdè àti iṣẹ́ tí ó wà
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getRentServicesAndCountries&rent_time=$time&operator=$operator&country=$country&incomingCall=$incomingCall

Awọn paramita:

$api_key - Kọkọ API

$time* - akoko iyalo (nipasẹ aiyipada: wakati 4)

$operator* - oniṣẹ alagbeka fun nọmba naa, o le yan ọpọlọpọ wọn ti a ya sọtọ pẹlu koma (nipasẹ aiyipada: Eyikeyi)

$country* - orilẹ-ede (nipasẹ aiyipada: Russia)

$incomingCall * - ti a ba gbe e "true"gba nọmba kan ti o ṣe atilẹyin iṣẹ lati gba ipe

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{ "countries": { "0": 0 }, "operators": { "0": "aiva", "1": "any", "2": "beeline", ... "16": "yota" }, "services": { "full": { "cost": 42.93, "quant": 20 }, "vk": { "cost": 21.95, "quant": 20 }, "ok": { "cost": 7.68, "quant": 55 }, "ot": { "cost": 5.2, "quant": 42 } } }

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

OUT_OF_STOCK - awọn nọmba fun orilẹ-ede yẹn ko wa

Béèrè yíyà nọ́mbà fónù fojú kan
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getRentNumber&service=$service&rent_time=$time&operator=$operator&country=$country&url=$url&incomingCall=$incomingCall

Awọn paramita:

$api_key - Kọkọ API

$service - iṣẹ ti o nilo lati gba nọmba fun

$time* - akoko iyalo ni wakati (aiyipada: wakati 4). Akoko ti o wa lẹhinna jẹ wakati 12, lẹhinna wakati 24. Nigba ti o ba beere iyalo fun ọjọ kan tabi ju bẹẹ lọ, o gbọdọ fi ranṣẹ: 24, 48, 72, bbl.

$operator* - oniṣẹ alagbeka fun nọmba naa, o le yan ọpọlọpọ wọn ti a ya sọtọ pẹlu koma (nipasẹ aiyipada: Eyikeyi)

$country* - orilẹ-ede (nipasẹ aiyipada: Russia)

$url * - ọna asopọ fun webhook (a ko ka rẹ nipasẹ aiyipada)

$incomingCall * - ti a ba gbe e "true"gba nọmba kan ti o ṣe atilẹyin iṣẹ lati gba ipe

Kini webHook?

* paramita aṣayan. Ti a ko ba sọ ọ di mimọ, a o lo paramita aiyipada.

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{ "status": "success", "phone": { "id": 1049, "endDate": "2020-01-31T12:01:52", "number": "79959707564" } }

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

Dahun ni ọna kika json:

{ "status": "error", "message": "*possible_answer*" }


Awọn idahun ti o ṣeeṣe ninu aaye naa "message":

ÌRANṢẸ́ TÍ KÒ TỌ́ - iṣẹ ko ni pato tabi orukọ ko tọ

NO_BALANCE - ko si owo ninu akọọle naa

KÒ SÍ NỌ́MBÀ - kò sí nọ́mbà kankan

ACCOUNT_INACTIVE - kò sí nọ́mbà kankan

SERVER_ERROR - aṣiṣẹ olupin

ÌDÍNÀ ÀWỌN IKANNI - àkọọ́lẹ̀ ti di dídènà

gba ipò fún yíyà
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getRentStatus&id=$id&page=$page&size=$size

Awọn paramita:

$api_key - Kọkọ API

$id - ID Iyalo ti a gba ninu idahun nigba ti a ba paṣẹ nọmba kan

$page* - nọmba oju-iwe ti yiyan bẹrẹ lati (nọmba oju-iwe bẹrẹ lati 0, lati titun si atijọ; aiyipada jẹ 0)

$size* - iwọn oju-iwe (aiyipada 10)

* paramita aṣayan. Ti a ko ba sọ ọ di mimọ, a o lo paramita aiyipada.

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{ "status": "success", "quantity": "2", "values": { "0": { "phoneFrom": "79180230628", "text": "5", "service": "ot", "date": "2020-01-30 14:31:58" }, "1": { "phoneFrom": "79180230628", "text": "4", "service": "ot", "date": "2020-01-30 14:04:16" } } }

* aṣeyọri nikan nigba ti o ba wa sms (apoti 'quantity' > 0).

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

Dahun ni ọna kika json:

{ "status": "error", "message": "*possible_answer*" }

Awọn idahun ti o ṣeeṣe ninu aaye naa "message":

NO_ID_RENT - ID iyalo ko ni pato

INVALID_PHONE - nọ́mbà náà kò jẹ́ ti ẹ̀yin (ID iyalo tí kò tọ́)

STATUS_FINISH - owó iyalo san, iṣẹ́ náà sì ti parí

STATUS_CANCEL - iyalo fagilé pẹ̀lú ìdásílẹ̀ owó padà

STATUS_WAIT_CODE - ń dúró fún SMS àkọ́kọ́

STATUS_REVOKE - Nọ́mbà náà ti dènà, owó yín ti dà padà

Ìyípadà Ipò Yíyà
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=setRentStatus&id=$id&status=$status

Awọn paramita:

$api_key - Kọkọ API

$id - ID Iyalo ti a gba ninu idahun nigba ti a ba paṣẹ nọmba kan

$status - koodu fún yíyí ipò padà (nọ́mbà)

Ipò lè jẹ́:

1
Parí
2
Fagilé

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json:

{ "status": "success" }

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

Dahun ni ọna kika json:

{ "status": "error", "message": "*possible_answer*" }

Awọn idahun ti o ṣeeṣe ninu aaye naa "message":

NO_ID_RENT - ID iyalo ko ni pato

INCORECT_STATUS - ipò kò sí tàbí a kọ ọ́ lásìkò

CANT_CANCEL - kò ṣeé ṣe láti fagilé iyalo (ju ìṣẹ́jú 20 lọ)

INVALID_PHONE - nọ́mbà náà kò jẹ́ ti ẹ̀yin (ID iyalo tí kò tọ́)

ALREADY_FINISH - iyalo ti parí tẹ́lẹ̀

ALREADY_CANCEL - iyalo ti fagilé tẹ́lẹ̀

SERVER_ERROR - aṣiṣẹ olupin

Kojú àwọn ìmúṣiṣẹ́ tó wà lọ́wọ́lọ́wọ́
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getRentList

👉Kíyèsí! Ọ̀nà yìí máa ń fi àwọn nọ́mbà mẹ́wàá tí ó wà ní ìparí hàn nìkan. Tí o bá nílò nọ́mbà díẹ̀ sí i, lo getRentStatus ọ̀nà láti ṣàyẹ̀wò àwọn ipò.

Awọn paramita:

$api_key - Kọkọ API

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json:

{ "status": "success", "values": { "0": { "id": "12345", "phone": "79181234567" }, "1": { "id": "12345", "phone": "79181234568" } } }

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́


Dahun ni ọna kika json:

{ "status": "error", "message": "*possible_answer*" }


Awọn idahun ti o ṣeeṣe ninu aaye naa "message":

KÒ SÍ NỌ́MBÀ - kò sí àwọn nọ́mbà tí a yá

SERVER_ERROR - aṣiṣẹ olupin

Fagun ìdíwọ̀n rẹ
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=continueRentNumber&id=$id&rent_time=$time

Awọn paramita:

$api_key - Kọkọ API

$id - id iyalo

$rent_time- àkókò iyalo (ní àbọ̀: wákàtí 4)

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json:

{ "status": "success", "phone": { "id": 1049, "endDate": "2020-01-31T12:01:52", "number": "79959707564"} }

Nígbà tí iyalo tí ó ti parí bá gùn, a óò tún bẹ̀rẹ̀ rẹ̀, a ó sì pèsè id tuntun

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

SERVER_ERROR - aṣiṣẹ olupin


Dahun ni ọna kika json:

{ "status": "error", "message": "*possible_answer*", "info": "*details*" }


Awọn idahun ti o ṣeeṣe ninu aaye naa "message":

NO_ID_RENT - kò sí ID iyalo

INVALID_TIME - àkókò tí kò tọ́. Iye wákàtí tí ó wà láti 4 dé 1344

MAX_HOURS_EXCEED - A ti kọjá àkókò tí ó pọ̀ jùlọ tí ó wà

info:

max - àkókò tí ó pọ̀ jùlọ tí ó wà

INVALID_PHONE - ID iyalo tí kò tọ́

RENT_DIE - a ko le fa igba iyalo gun nitori pe nọmba ti pari

NO_BALANCE - owo to ku ko to

ÌDÍNÀ ÀWỌN IKANNI - àkọọ́lẹ̀ ti di dídènà

Gba iye owó fún ìfagun ìdíwọ̀n
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getContinueRentPriceNumber&id=$id&rent_time=$time

* ọna yii wa fun iyalo pẹlu oluṣiṣẹ MTT nikan.

Awọn paramita:

$api_key - Kọkọ API

$id - id iyalo

$rent_time - akoko iyalo

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json:

{ "status": "success", "price": 6.33 }

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

SERVER_ERROR - aṣiṣẹ olupin


Dahun ni ọna kika json:

{ "status": "error", "message": "*possible_answer*" }


Awọn idahun ti o ṣeeṣe ninu aaye naa "message":

NO_ID_RENT - kò sí ID iyalo

INVALID_PHONE - ID iyalo tí kò tọ́

INVALID_TIME - eto akoko ti ko tọ

RENT_DIE - a ko le fa igba iyalo gun nitori pe nọmba ti pari

MAX_HOURS_EXCEED - A ti kọjá àkókò tí ó pọ̀ jùlọ tí ó wà

info:

max - àkókò tí ó pọ̀ jùlọ tí ó wà

ÌDÍNÀ ÀWỌN IKANNI - àkọọ́lẹ̀ ti di dídènà

API JAVA

Ìbẹ̀rẹ̀ iṣẹ́

Fi ile-ikawe kun maven

<igbẹkẹle><groupId>ru.sms-activate</groupId>
<artifactId>SMSActivateApi</artifactId>
<version>1.0</version>
</dependecy>

O le wo apẹẹrẹ iforukọsilẹ nipasẹ ọna asopọ si MavenRepository

Kọwe kilasi akọkọ wọle lati ba SMS-Activate API sọrọ.

import ru.sms_activate.SMSActivateApi

Lati lo ile-ikawe naa, o nilu bọtini API, o le gba e ni oju-iwe yii ati ni ọna asopọ ni isalẹ.

SMS-Activate API-Key
Àpẹẹrẹ iṣẹ́ pẹ̀lú ìwọ̀ntúnwọ̀nsì

Lati gba iwontunwonsi lọwọlọwọ lori akọọlẹ rẹ, lo ọna getBalance... Ti o ba nifẹsi cashback ni afikun si iwontunwonsi, pe ọna naa getBalanceAndCashBack.

Ọna getBalanceAndCashBack n da ohun kilasi padaSMSActivateGetBalanceAndCashBack.

getBalance: Gba iwontunwonsi akọọlẹ lọwọlọwọ

Awọn paramita:

NONE

IRU PADA:

BigDecimal

getBalanceAndCashBack: Gba iwontunwonsi ati iye cashback gẹgẹbi iwontunwonsi kikun

Awọn paramita:

NONE

getNumber: Gba imuṣiṣẹ

Awọn paramita:

countryId(Integer) - idanimọ orilẹ-ede.

service(String) - orukọ kukuru iṣẹ naa.

forward*(boolean) - boya lati beere nọmba pẹlu itọsọna ipe.

operatorSet*(Set) - àkójọpọ̀ àwọn olùpèsè.

phoneException*(Set) - yàtọ̀ sí àwọn prefix fún Rọ́ṣíà nìkan, àkójọpọ̀ àwọn nọ́mbà láti 3 sí 6 (7918,7900111).

* apótí tí kò dandan. Tí kò bá sí ohun tí a sọ, iye àbáyọ ni wọ́n máa pèsè gẹ́gẹ́ bí ètò tó wà nínú prófáìlì rẹ.

getNumberStatus: Gba ìsọfúnni nípa àwọn iṣẹ́ tí ó wà

Awọn paramita:

countryId(Integer) - idanimọ orilẹ-ede.

operatorSet*(Set) - àkójọpọ̀ àwọn olùpèsè tí ó wà fún iṣẹ́ náà

getAdditionalService: Padà sí iṣẹ́ afikun fún nọ́mbà ìdarí ìpè.

Awọn paramita:

id(Integer) - ìdámọ̀ ìṣiṣẹ́

service(String) - orukọ kukuru iṣẹ naa.

Dípò ìdámọ̀ ìṣiṣẹ́, o lè fi ohun èlò class tí o gbà sílẹ̀ ránṣẹ́ SMSActivateActivation lẹ́yìn lílo ọ̀nà náà getNumber tàbí ọ̀kan lára àwọn ìṣiṣẹ́ lẹ́yìn lílo getMultiServiceNumber.

getMultiServiceNumber: Gba ìṣiṣẹ́ fún ọ̀pọ̀lọpọ̀ iṣẹ́

Awọn paramita:

countryId(Integer) - idanimọ orilẹ-ede.

serviceMap(Set) - àkójọpọ̀ àwọn iṣẹ́ tí ìṣiṣẹ́ wọn ti ra

multiForwardList(List) - àkójọ àwọn iṣẹ́ tí ìdarí ìpè wà fún

operatorSet(Set) - àkójọpọ̀ àwọn olùpèsè.

getAllPrices: Gba àkójọ kíkún àwọn owó ìṣiṣẹ́

Awọn paramita:

NONE

getPricesByCountryIdAndServiceShortName: Gba àkójọ àwọn owó ìṣiṣẹ́ nípasẹ̀ orílẹ̀-èdè àti orúkọ kúkúrú iṣẹ́

Awọn paramita:

countryId(Integer) - idanimọ orilẹ-ede.

service(String) - orukọ kukuru iṣẹ naa.

getPricesAllServicesByCountryId: Gba àkójọ àwọn owó ìṣiṣẹ́ nípasẹ̀ orílẹ̀-èdè

Awọn paramita:

countryId(Integer) - idanimọ orilẹ-ede.

getStatus: Gba ipò ìṣiṣẹ́

Awọn paramita:

activationId(Integer) - ìdámọ̀ ìṣiṣẹ́

Dípò ìdámọ̀ ìṣiṣẹ́, o lè fi ohun èlò class tí o gbà sílẹ̀ ránṣẹ́ SMSActivateActivation lẹ́yìn lílo ọ̀nà náà getNumber tàbí ọ̀kan lára àwọn ìṣiṣẹ́ lẹ́yìn lílo getMultiServiceNumber.

setStatus: Ṣètò ipò ìṣiṣẹ́

Awọn paramita:

id(Integer) - ìdámọ̀ ìṣiṣẹ́

status(SMSActivateClientStatus) - ipò tí a fẹ́ ṣètò fún ìṣiṣẹ́

Dípò ìdámọ̀ ìṣiṣẹ́, o lè fi ohun èlò class tí o gbà sílẹ̀ ránṣẹ́ SMSActivateActivation lẹ́yìn lílo ọ̀nà náà getNumber tàbí ọ̀kan lára àwọn ìṣiṣẹ́ lẹ́yìn lílo getMultiServiceNumber.

getCountries: Gba ìsọfúnni nípa àwọn orílẹ̀-èdè

Awọn paramita:

NONE

getFullSms: Gba ọ̀rọ̀ kíkún SMS láti inú nọ́mbà náà

Awọn paramita:

activationId(Integer) - ìdámọ̀ ìṣiṣẹ́

Dípò ìdámọ̀ ìṣiṣẹ́, o lè fi ohun èlò class tí o gbà sílẹ̀ ránṣẹ́ SMSActivateActivation lẹ́yìn lílo ọ̀nà náà getNumber tàbí ọ̀kan lára àwọn ìṣiṣẹ́ lẹ́yìn lílo getMultiServiceNumber.

Ètò fún gbigba ọ̀rọ̀ kíkún SMS pẹ̀lú ìṣiṣẹ́

Gbigba nọmba nipa lilo ọna getNumber, lẹhinna awọn iṣe wọnyi wa:

CANCEL - 8 - Fa ìṣiṣẹ́ yọ (tí nọ́mbà náà kò bá mu ọ)

MESSAGE_WAS_SENT - Sọ pé a ti fi SMS ranṣẹ (O dandan lati gba ọrọ kikun ti SMS naa)

Lẹhin ti o ba ti ṣeto ipò MESSAGE_WAS_SENT gẹgẹbi ohun ti o dandan, ṣeto oniyipada lati gba SMS nipa lilo ọna waitSMS pẹlu awọn paramita iṣiṣẹ ati akoko idaduro fun SMS.

Lẹhin gbigba SMS, o le gba a nipa lilo ọna getFullSMS ki o si fi ọrọ kikun han nipa lilo ọna getText().

Lẹhin eyi, o le ṣeto awọn iṣiṣẹ si awọn ipò wọnyi:

Lati ṣiṣẹ pẹlu ipò MESSAGE_WAS_SENT:

CANCEL - Fagilee iṣiṣẹ

Lẹsẹkẹsẹ lẹhin gbigba koodu naa:

REQUEST_ONE_MORE_CODE - Beere SMS miiran

FINISH - Jẹrisi koodu SMS ki o si pari iṣiṣẹ

Lati ṣiṣẹ pẹlu ipò REQUEST_ONE_MORE_CODE:

FINISH - Jẹrisi koodu SMS ki o si pari iṣiṣẹ

getRentNumber: Gba nọmba pẹlu aṣayan iyalo

Awọn paramita:

countryId(Integer) - idanimọ orilẹ-ede.

service(String) - orukọ kukuru iṣẹ naa.

hours(Integer)* - akoko iyalo

operator(String)* - orukọ olupese alagbeka

urlWebhook(String)* - ọna asopọ fun webhook (A ko ka a ni aiyipada)

Kini webHook?

* paramita ti o le yan. Ti a ko ba sọ ọ, aiyipada yoo jẹ

GetRentServicesAndCountriesRun: Gba awọn iṣẹ ati awọn orilẹ-ede fun iyalo

Awọn paramita:

countryId(Integer) - idanimọ orilẹ-ede.

operatorSet(Set) - akojọpọ awọn olupese alagbeka

hours(Integer)* - akoko iyalo

* paramita ti o le yan. Ti a ko ba sọ ọ, aiyipada yoo jẹ

GetRentStatusJava: Gba ipò kan fun iyalo

Awọn paramita:

rentId(Integer) - idanimọ nọmba ti a ya

Dipo rentId, o le fi nkan kilasi ti o jade silẹ SMSActivateRentActivation lẹ́yìn lílo ọ̀nà náà getRentNumber

Email API

Àlàyé àwọn ipò API

3 - Nduro

4 - Fagilee

5 - Aṣeyọri

Mail API Ẹ̀yà 2

ÀLÀYÉ:

Ìtẹ̀lé mímú àwọn ìlànà REST API pọ̀ sí i, àti ìpèsè àwọn apamọ́ gmail.com púpọ̀ fún fífìdí àwọn àkọsílẹ̀ Telegram múlẹ̀.

Gba àkójọ pẹ̀lú àwọn ìpèsè
https://api.sms-activate.ai/stubs/handler_api.php?action=getDomains&api_key=$api_key&site=$site

Awọn paramita:

$api_key - Kọkọ API

$site- Oju opo wẹẹbu ti o nilo imeeli fun

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{
                        "status":"OK",
                        "response":{
                            "zones":[
                                {
                                "name":"info",
                                "cost":2.5
                                },
                                ...
                            ],
                            "popular":[
                                {
                                "name":"mail.ru",
                                "cost":6,
                                "count":159008
                                },
                                ...
                            ]
                        }
                        }

ASISE TI O ṢEEṢE:

BAD_SITE- Ko ti sọ oju opo wẹẹbu naa

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

Rá ìjẹ́rísí nípasẹ̀ ímeèlì
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=buyMailActivation&site=$site&mail_type=$mail_type&mail_domain=$mail_domain

Awọn paramita:

$api_key - Kọkọ API

$site - oju opo wẹẹbu ti o nilo imeeli fun

$mail_type - iru imeeli: awọn agbegbe olokiki tabi awọn zone (1 - awọn zone 2 - olokiki)

$mail_domain - agbegbe tabi domain ti a yan

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{
                        "status":"OK",
                        "response":{"email":"[email protected]","id":241}
                        }

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

MAIL_TYPE_ERROR - ko si domain bẹẹ fun aaye ti a sọ

ÌDÍNÀ ÀWỌN IKANNI - àkọọ́lẹ̀ ti di dídènà

Tun imeeli ṣiṣẹ
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=reorderMailActivation&id=$id

Awọn paramita:

$api_key - Kọkọ API

$id- Id ti imeeli ti o nilo lati tun ṣiṣẹ

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{
                            "status": "OK",
                        "response": {
                            "email": "[email protected]",
                            "id": 360
                            }
                        }

ASISE TI O ṢEEṢE:

BAD_KEY - kọkọrọ API ti ko tọ

ÌGBÉSÈ TÍ KÒ TỌ́ - ìgbésè tí kò tọ́

BLOCKED_SITE - aaye ti a dènà

BAD_BALANCE - owo to ku ko to

ACTIVATION_NOT_FOUND - ko ri iṣẹ-ṣiṣe naa

ÌDÍNÀ ÀWỌN IKANNI - àkọọ́lẹ̀ ti di dídènà

Gba àkójọ àwọn rírà tí ń ṣiṣẹ́
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=getMailHistory&page=$page&per_page=$per_page&search=$search&sort=$sort

Awọn paramita:

$api_key - Kọkọ API

$page- nọmba oju-iwe

$per_page- iye awọn rira lori oju-iwe kọọkan

$search- ọpa wiwa

$sort- itọsọna siseto. (desc, asc)

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{
                        "status":"OK",
                        "response":{
                            "list":[
                                {
                                "id":"241",
                                "site":"apple.com",
                                "email":"[email protected]",
                                "status":"3",
                                "value":null,
                                "cost":"6.00",
                                "date":"2023-10-06 14:24:13",
                                "full_message":""
                                }
                            ],
                            "pages":1,
                            "count":1
                        }
                        }
Fa rírà ímeèlì kúrò
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=cancelMailActivation&id=$id

Awọn paramita:

$api_key - Kọkọ API

$id- id rira

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{
                        "status":"OK",
                        "response":true
                        }

ASISE TI O ṢEEṢE:

EARLY_CANCEL_DENIED - O ko le fagilee imeeli fun iṣẹju meji akọkọ.

Ṣayẹwo boya a ti gba imeeli naa
https://api.sms-activate.ai/stubs/handler_api.php?api_key=$api_key&action=checkMailActivation&id=$id

Awọn paramita:

$api_key - Kọkọ API

$id- id ti imeeli ti a ra, a da pada lẹhin rira imeeli kan

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{
                        "status":"OK",
                        "response":{
                            "value":"Содержания письма"
                        }
                        }

Sọfitiwia Alabaṣiṣẹpọ API

Ra sọfitiwia alabaṣiṣẹpọ
https://api.sms-activate.ai/stubs/handler_api.php?action=buyPartnerProduct&productId=$id&api_key=$api_key

Awọn paramita:

$api_key - Kọkọ API

$id- Id ti sọfitiwia ti o nilo lati ra

IDAHUN:

Idahun iṣẹ naa yoo wa ni ọna kika json, apẹẹrẹ:

{                            
                            "status": "success",
                            "key": "F5qrzFoY6afj3zrEq7SeMplbx",
                            "manual": "Software download link:"                            
                        }

ASISE TI O ṢEEṢE:

BAD_DATA - ID ti ko tọ tabi ID kii ṣe nọmba

ÌGBÉSÈ TÍ KÒ TỌ́ - iṣe ti ko wulo tabi onita kii ṣe ti a fọwọsi.

                        <?php
                            include_once ("smsactivateApi.php");//Inclusion of a class in a project
                            $sms = new SMSActivate($API_KEY);//Create class instance SMSActivate

$freeSlots = $sms->getNumbersStatus(0, 'tele2');//Get the number of available numbers for the country of Russia and the tele2 operator echo "Номеров Вконтакте: " . $freeSlots['vk']."\n";//Show for Vk
echo "Номеров Whatsapp: " . $freeSlots['wa']."\n";//Show for whatsapp
var_dump($freeSlots); //Show all services with quantity
$array=$activate->getTopCountriesByService(); //Get an array whose elements contain information for each country $balance = $sms->getBalance();//Get balance echo "On the account " . $balance." rub.\n";//Show balance
$balance = $sms->getBalanceAndCashBack();//Request a balance with cashback account echo "On the account " . $balance." rub.\n";//Request a balance with cashback account
$operators = $sms->getOperators(); //Get operators for all countries if (in_array('mts', $operators['countryOperators'][0])) { //check if 'mts' is available for Russia //perform an action } if (in_array('chinamobile', $operators['countryOperators'][3])) { //check if 'chinamobile' is available for China //perform an action } $activations = $sms->getActiveActivations(); $number = $sms->getNumber('ok',0, 0, 'tele2');//Get Odnoklassniki number without forwarding echo "Activation № " . $number['id']. "Phone ". $number['number'] \n";//Show id and activation number
$result = $sms->getNumber('vk', 0 , 1); if (!is_array($result)) { echo 'Ошибка: ' . $result . '\n';//If an error occurs, a string will be returned, if successful, an array will be returned. } else { echo 'Id: ' . $result['id'] ."\n"; echo 'Номер: ' . $result['number'] ."\n"; }
$result = $sms->getNumberV2('vk', 0 , 1); $number = $sms->getMultiServiceNumber('ok,vk,vi,av','0,0,0,1', 0, 'tele2');//Get a number for services Odnoklassniki, Vkontakte, Viber without call forwarding and Avito with call forwarding foreach ($number as $value) { echo "Activation № " . $value['activation']. " for service ". $value['service'] ."\n"; }
echo "Number " . $value['phone'] ."\n";//Show activation id and number
$status = $sms->setStatus($number['id'], 3);//Change activation status by id (get 1 more code) $status = $sms->getStatus($number['id']);//Get activation status by id if (is_array($status) { echo "статус : " . $status['status'];//Can be STATUS_OK or STATUS_WAIT_RETRY, otherwise a line with error text will be returned echo "код: " . $status['code']; } else { echo $status ."\n"; } $incomingCall = $sms->getIncomingCallStatus($id);//Get activation data by call echo $incomingCall['phone'] //Show incoming number $prices = $sms->getPrices(1, 'vk');//Get the current price for the service echo "Price for VK (Ukraine) : " .$prices[1]['vk']['cost']." rub. quantity: ". $prices[1]['vk']['count'];//Show the result $countries = $sms->getCountries();//Get a list of all countries $additional = $sms->getAdditionalService('fx', $id);//Get additional activation for PGbonus service based on id activation echo "Activation no.: " . $additional[id] . " Telephone: " . $additional[number];//Show the result $getAvailableRentNumbers = $sms->getRentServicesAndCountries('2');//Request available countries for rent and services (for 2 hours for all operators) echo "Full rental - Cost:" . $getAvailableRentNumbers['services']['full']['cost'] . " Quant :" .$getAvailableRentNumbers['services']['full']['quant'] ." \n"; //Display full price information
foreach( $getAvailableRentNumbers['operators'] as $value) { echo " Operator " . $value ."\n"; }//List operators
$getRentNumber = $sms->getRentNumber('vk','10','0','yota');//Get a number for rent for Vkontakte for 10 hours, operator 'Yota', country - Russia if ($getRentNumber['status'] === 'success'){ echo "The rental was successful! Your phone number is: " . $getRentNumber['phone']['number']." \nRent expiration : ". $getRentNumber['phone']['endDate']." \nId numbers :" .$getRentNumber['phone']['id'] ; }//Display rental information
else echo "Error code : " . $getRentNumber['message'];
$getRentStatus = $sms->getRentStatus($getRentNumber['phone']['id']);//Get the rent status with id from the received number if ($getRentStatus['status'] == 'success'){ foreach( $getRentStatus['values']as $index => $value) { echo " Message " . $index .": from the number - " . $value['phoneFrom'] . " Service - " . $value ['service'] . "message text - " . $value['text'] . "Date - " . $value['date']; } }//display a list of messages received while renting a phone else echo "Error code : " . $getRentStatus['message']; $setRentStatus = $sms->setRentStatus($getRentNumber['phone']['id'],1);//Set rental status 'finish' with id from received number if ($setRentStatus['status'] == 'success') echo " Status change was successful! "; else echo "Error code : " . $setRentStatus['message']; $getRentList = $sms->getRentList();//Get a list of currently rented numbers if (getRentList['status'] == 'success') foreach( $getRentList['values'] as $value) { echo " ID " . $value["id"] . " Number " . $value["phone"] ."\n"; }//List numbers else echo "Error code : " . $getRentList['message']; $result = $sms->continueRentNumber($id);//Extend the lease of activation id for 4 hours (by default) if ($result['status'] == 'success') { echo "Number: " . $result['phone']['number']"//Display number echo "id: " . $result['phone']['id']"//Display activation id echo "The lease is valid until: " . $result['phone']['endDate']"//Display the date and time of the end of the lease } else { echo "Error code : " . $result['msg']; } $result = $sms->getContinueRentPriceNumber($id, 12);//Get the cost of renewing the lease to activate the id for 12 hours if ($result['status'] == 'success') { echo " Renewal cost " . $result['price'];//Withdraw the cost } else { echo "Error code: " . $result['message']; //Display error code }
                    
                        from sms-activate.cyou import SMSActivateAPI
                         # SMSActivateAPI Contains all basic tools for working with the SMSActivate API
                        sa = SMSActivateAPI(API_KEY)
sa.debug_mode = True # Used for debugging. When debug_mode is active, all responses from the server and class will be output to the console print(sa.version()) # Returns the current version of the library status = sa.getNumbersStatus(country=0, operator='tele2') try: print(status['vk_0']) # 274789 except: print(status['message']) # Error text
result = sa.getTopCountriesByService('vk') try: print(result[0]['count']) # 2350 except: print(result['message']) # Error text balance = sa.getBalance() # {'balance': '100.00'} try: print(balance['balance']) # 100.00 except: print(balance['message']) # Error text
balance = sa.getBalanceAndCashBack() # {'balance': '100.00'} try: print(balance['balance']) # 100.00 except: print(balance['message']) # Error text
operators = sa.getOperators(country=0) try: print(operators['countryOperators']['0']) except: print(operators['error']) # Error status activations = sa.getActiveActivations() try: print(activations['activeActivations']) except: print(activations['error']) # Error status number = sa.getNumber(service='vk', operator='tele2', country=0, verification="true") # {'activation_id': 000000000, 'phone': 79999999999} try: print(number['phone']) # 79999999999 except: print(number['message']) # Error text number = sa.getNumberV2(service='vk', country=0) try: print(number['phoneNumber']) # 79999999999 except: print(number['message']) # Error text multinumber = sa.getMultiServiceNumber(service='fb,ig', operator='tele2', country=0) # [{'phone': '79999999999', 'activation': 000000000, 'service': 'fb'}, {'phone': '79999999999', 'activation': 000000001, 'service': 'ig'}] try: print(multinumber[0]['phone']) # 79999999999 except: print(multinumber['message']) # Error text status = sa.setStatus(id=000000000, status=1) # ACCESS_READY try: print(status) # ACCESS_READY except: print(status['message']) # Error text status = sa.getStatus(id=000000000) # STATUS_WAIT_CODE try: print(sa.activationStatus(status)) # {'status': 'STATUS_WAIT_CODE', 'message': 'Ожидание смс'} except: print(status['message']) # Error text status = sa.getIncomingCallStatus(id=000000000) try: print(status['status']) # 2 except: print(status['message']) # Error text prices = sa.getPrices(service='fb', country=0) try: print(prices['0']) # {'fb': {'cost': 9, 'count': 27934}} except: print(prices['message']) # Error text countries = sa.getCountries() try: print(countries['0']['eng']) # Russia except: print(countries['message']) # Error text service = sa.getAdditionalService(id=000000000, service='ig') try: print(service['phone']) # 79999999999 except: print(service['message']) # Error text service = sa.getRentServicesAndCountries(time=4, operator='tele2', country=0) try: print(service['services']['full']['cost']) # 100.00 except: print(service['message']) # Error text rent = sa.getRentNumber(service='ig', time=4, operator='tele2', country=0) try: print(rent['phone']['number']) # 79999999999 except: print(rent['message']) # Error text status = sa.getRentStatus(000000000) try: print(status['values']['0']['text']) # SMS except: print(status['message']) # Error text status = sa.setRentStatus(id=000000000, status=1) try: print(status['status']) # success except: print(status['message']) # Error text rent = sa.getRentList() try: print(rent['values']['0']['phone']) # 79999999999 except: print(rent['message']) # Error text rent = sa.continueRentNumber(id=000000000, time=4) try: print(rent['phone']['number']) # 79999999999 except: print(rent['message']) # Error text rent = sa.getContinueRentPriceNumber(000000000) try: print(status['price']) # 4.00 except: print(status['message']) # Error text
                    
                        
                            import ru.sms_activate.SMSActivateApi;//Inclusion of a class in a project
SMSActivateApi smsActivateApi = new SMSActivate("API_KEY");//Create an instance of the SMSActivate class
BigDecimal balance = smsActivateApi.getBalance();//Get the current account balance System.out.println("Balance: "+ balance)//Withdraw the received balance SMSActivateGetBalanceAndCashbackResponse smsActivateGetBalanceAndCashbackResponse = smsActivateApi.getBalanceAndCashback();//Get current balance and cashback System.out.println("Cashback + balance: "+ smsActivateGetBalanceAndCashbackResponse.getBalanceAndCashback());//Withdraw the amount of balance and cashback SMSActivateActivation activation=smsActivateApi.getNumber(0,"vk")//Get activation for the Vkontakte service in Russia System.out.println(activation);//Withdraw the received activation SMSActivateGetNumbersStatusResponse smsActivateGetNumbersStatusResponse= smsActivateApi.getNumberStatus(0,null);//Get information about available services for Russia
SMSActivateServiceInfo go = smsActivateGetNumbersStatusResponse.getSMSActivateServiceInfoByShortName("go");//Getting information about numbers for the Google service
System.out.println("Short name service: " + go.getShortName();//Get the short name of the service System.out.println("count phone numbers: "+ go.getCountPhoneNumber();//Get the number of numbers for the service System.out.println(""Forwarding is available: "+ go.isForward() ? "yes" : "no"//Find out if the service has a redirect
SMSActivateActivation activation=smsActivateApi.getNumbersStatus(0,"ot",true);//Activations
smsActivateApi.setStatus(activation, SMSActivateClientStatus.MESSAGE_WAS_SENT);//Setting the MESSAGE_WAS_SENT status after sending SMS for the number
SMSActivateActivation childActivation =smsActivateApi.getAdditionalService(activation,"av");//Requesting a new activation for an additional service
System.out.println(childActivation);//Displaying information about additional activation
Set<String>operatorSet= new HashSet<>(); operatorSet.add("mts");//Adding an MTS operator to the set of operators Map<String,Boolean>serviceMap= new HashMap<>(); serviceMap.put("av",false);//Adding the Avito service to the list of services (specify true if you need a service with redirection)
SMSActivateGetMultiServiceNumberResponse multiServiceNumberResponse=smsActivateApi.getMultiServiceNumber(0, serviceMap, operatorSet);//Getting activation for multiple services
multiServiceNumberResponse.getSMSActivateActivationList().forEach(activation->{ System.out.println("Id: " + activation.getId()); System.out.println("Number: " + activation.getNumber()); System.out.println("Service name: " + activation.getShortName()); } //Displaying information about received activations
SMSActivateGetPricesResponse smsActivateGetPricesResponse=smsActivateApi.getPricesByCountryIdAndServiceShortName(0, "vk");//Obtaining a list of prices for Russia on the Vkontakte service. For a complete list of prices, use the getAllPrices () method;
SMSActivateGetPriceInfo vk=smsActivateGetPricesResponse.getPriceInfo(0, "vk");//Getting information about the Vkontakte service for Russia
System.out.println(">>> Cost: "+ vk.getCost());//Get a price for the service System.out.println(">>> count phone numbers: " + vk.getCountPhoneNumbers());//Get the number of numbers for the service
SMSActivateActivation activation=smsActivateApi.getNumber(0,"vk")//Get activation for the Vkontakte service in Russia System.out.println(activation);//Withdraw the received activation SMSActivateGetStatusResponse getResponse = smsActivateApi.getStatus(activation);//Getting a status for activation
System.out.println(getResponse.getSMSActivateGetStatus());//Displaying information about the activation status
smsActivateApi.setStatus(activation, SMSActivateClientStatus.MESSAGE_WAS_SENT);//Setting the MESSAGE_WAS_SENT status after receiving SMS for the number
smsActivateApi.setStatus(activation, SMSActivateClientStatus.FINISH);//Setting the FINISH status after receiving SMS for the number
SMSActivateGetCountriesResponse smsActivateGetCountriesResponse =smsActivateApi.getCountries();//Getting a list of countries with information SMSActivateCountryInfo countryInfo = smsActivateGetCountriesResponse.get(0)//Getting information about the first country on the list
System.out.println("Russian name: "+countryInfo.getRussianName();//Display the Russian name of the country System.out.println("English name: "+countryInfo.getEnglishName();//Display the Russian name of the country System.out.println("Support multi-service: "+ countryInfo.isSupportMultiService() ? "yes" : "no"//Show if the country supports multi-services
SMSActivateActivation activation=smsActivateApi.getNumber(0,"vk")//Get activation for the Vkontakte service in Russia smsActivateApi.setStatus(activation, SMSActivateClientStatus.MESSAGE_WAS_SENT);//Setting the MESSAGE_WAS_SENT status after sending SMS for the number String code=smsActivateApi.waitSms(activation,2)//Set receiving sms within 2 minutes if(code == null) { smsActivateApi.setStatus(activation, SMSActivateClientStatus.CANCEL);//Setting the CANCEL status if sms has not arrived }
else{
SMSActivateGetFullSmsResponse smsActivateGetFullSmsResponse=smsActivateApi.getFullSms(activation)//Receiving sms text System.out.println("Full SMS: "+smsActivateGetFullSmsResponse.getText());//SMS text output }
SMSActivateRentActivation rentActivation= smsActivateApi.getRentNumber(0, "vk", 6);//Getting a number with rent System.out.println(">> ID: "+rentActivation.getId());//Activation ID withdrawal System.out.println(">> Number: "+rentActivation.getId());//Displaying the activation number System.out.println(">> End date: "+rentActivation.getId());//Displaying the activation expiration date SMSActivateGetRentServicesAndCountriesResponse smsActivateGetRentServicesAndCountriesResponse= smsActivateApi.getRentServicesAndCountries(0, null, 4);//Obtaining information on services and countries that support rental
smsActivateGetRentServicesAndCountriesResponse.getAllRentServices().forEach((serviceShortName, smsActivateRentService)->{ System.out.println("Service shortname: " + serviceShortName);
System.out.println(" count phone numbers: " + smsActivateRentService.getCountPhoneNumbers());
System.out.println(">> Cost: " + smsActivateRentService.getCost()); }
//Displaying information about received services
SMSActivateRentActivation rentActivation= smsActivateApi.getRentNumber(0, "vk");//Getting a number with rent SMSActivateGetRentStatusResponse smsActivateGetRentStatusResponse= smsActivateApi.getRentStatus(rentActivation);//Getting activation status System.out.println(">> Count sms: "+ smsActivateGetRentStatusResponse.getCountSms());//Displaying the number of sms on the rented number

{{ texts.verificationVoiceTextFirst }}

{{ texts.verificationVoiceTextSecond }}

{{ texts.verificationVoiceTextThird }}

Ohun èlò fún dídi ojú-ewé wébù