[{"data":1,"prerenderedAt":1778},["ShallowReactive",2],{"navigation":3,"\u002Fnumbers":43,"\u002Fnumbers-surround":1773},[4,8,13,18,23,28,33,38],{"title":5,"path":6,"stem":7},"Getting started","\u002F","index",{"title":9,"path":10,"stem":11,"order":12},"Numbers","\u002Fnumbers","numbers",1,{"title":14,"path":15,"stem":16,"order":17},"Rent","\u002Frent","rent",2,{"title":19,"path":20,"stem":21,"order":22},"User","\u002Fuser","user",3,{"title":24,"path":25,"stem":26,"order":27},"Free numbers","\u002Ffree","free",4,{"title":29,"path":30,"stem":31,"order":32},"Webhooks","\u002Fwebhooks","webhooks",5,{"title":34,"path":35,"stem":36,"order":37},"Testing","\u002Ftesting","testing",6,{"title":39,"path":40,"stem":41,"order":42},"Changelog","\u002Fchangelog","changelog",7,{"id":44,"title":9,"body":45,"description":1767,"extension":1768,"meta":1769,"navigation":1770,"path":10,"seo":1771,"stem":11,"__hash__":1772},"docs\u002Fnumbers.md",{"type":46,"value":47,"toc":1754},"minimark",[48,106,110,117,172,207,220,222,225,275,356,398,422,425,431,476,509,577,582,585,588,645,740,799,879,882,885,928,981,989,992,1002,1110,1227,1249,1318,1344,1346,1349,1369,1383,1385,1391,1411,1424,1436,1438,1441,1461,1474,1484,1486,1492,1523,1583,1624,1627,1630,1658,1743,1750],[49,50,51,52,56,57,6,60,63,64,67,68,71,72,75,76,79,80,83,84,87,88,83,91,94,95,98,99,102,103,105],"p",{},"An operation (",[53,54,55],"code",{},"tzid",") is one ordered number. Order it with ",[53,58,59],{},"get",[53,61,62],{},"getWithNumber",", read the SMS with ",[53,65,66],{},"stateOne"," or ",[53,69,70],{},"waitCode",", finish it with ",[53,73,74],{},"close"," (or ",[53,77,78],{},"ban","). Countries are phone codes (",[53,81,82],{},"7",", ",[53,85,86],{},"44",", …), services are slugs (",[53,89,90],{},"google",[53,92,93],{},"vkcom",", …) as returned by ",[53,96,97],{},"tariffs",". Every ",[53,100,101],{},"country"," parameter defaults to ",[53,104,82],{},".",[107,108,109],"h2",{"id":109},"price",[49,111,112,113,116],{},"Price of one number, USD; ",[53,114,115],{},"null"," when the country has no price for the service.",[118,119,124],"pre",{"className":120,"code":121,"language":122,"meta":123,"style":123},"language-kotlin shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","suspend fun price(service: String, country: Int = 7): Double?\n","kotlin","",[53,125,126],{"__ignoreMap":123},[127,128,130,134,138,142,146,150,153,156,159,163,166,169],"span",{"class":129,"line":12},"line",[127,131,133],{"class":132},"spNyl","suspend",[127,135,137],{"class":136},"sMK4o"," fun",[127,139,141],{"class":140},"s2Zo4"," price",[127,143,145],{"class":144},"sTEyZ","(service: ",[127,147,149],{"class":148},"sBMFI","String",[127,151,152],{"class":144},", country: ",[127,154,155],{"class":148},"Int",[127,157,158],{"class":136}," =",[127,160,162],{"class":161},"sbssI"," 7",[127,164,165],{"class":144},"): ",[127,167,168],{"class":148},"Double",[127,170,171],{"class":144},"?\n",[118,173,175],{"className":120,"code":174,"language":122,"meta":123,"style":123},"val usd = client.numbers.price(\"google\", 44)\n",[53,176,177],{"__ignoreMap":123},[127,178,179,182,185,188,191,193,196,200,202,204],{"class":129,"line":12},[127,180,181],{"class":136},"val",[127,183,184],{"class":144}," usd ",[127,186,187],{"class":136},"=",[127,189,190],{"class":144}," client.numbers.",[127,192,109],{"class":140},[127,194,195],{"class":144},"(",[127,197,199],{"class":198},"sfazB","\"google\"",[127,201,83],{"class":144},[127,203,86],{"class":161},[127,205,206],{"class":144},")\n",[49,208,209,210,213,214,83,217,105],{},"Errors: ",[53,211,212],{},"ApiException"," ",[53,215,216],{},"ERROR_NO_SERVICE",[53,218,219],{},"UNDEFINED_COUNTRY",[107,221,59],{"id":59},[49,223,224],{},"Order a number; returns the operation id. Freezes the price on the balance.",[118,226,228],{"className":120,"code":227,"language":122,"meta":123,"style":123},"suspend fun get(service: String, country: Int = 7, reject: Collection\u003CString>? = null): Long\n",[53,229,230],{"__ignoreMap":123},[127,231,232,234,236,239,241,243,245,247,249,251,254,257,260,262,265,267,270,272],{"class":129,"line":12},[127,233,133],{"class":132},[127,235,137],{"class":136},[127,237,238],{"class":140}," get",[127,240,145],{"class":144},[127,242,149],{"class":148},[127,244,152],{"class":144},[127,246,155],{"class":148},[127,248,158],{"class":136},[127,250,162],{"class":161},[127,252,253],{"class":144},", reject: ",[127,255,256],{"class":148},"Collection",[127,258,259],{"class":144},"\u003C",[127,261,149],{"class":148},[127,263,264],{"class":144},">? ",[127,266,187],{"class":136},[127,268,269],{"class":136}," null",[127,271,165],{"class":144},[127,273,274],{"class":148},"Long\n",[276,277,278,297],"table",{},[279,280,281],"thead",{},[282,283,284,288,291,294],"tr",{},[285,286,287],"th",{},"Param",[285,289,290],{},"Type",[285,292,293],{},"Default",[285,295,296],{},"Description",[298,299,300,318,335],"tbody",{},[282,301,302,308,312,315],{},[303,304,305],"td",{},[53,306,307],{},"service",[303,309,310],{},[53,311,149],{},[303,313,314],{},"—",[303,316,317],{},"Service slug.",[282,319,320,324,328,332],{},[303,321,322],{},[53,323,101],{},[303,325,326],{},[53,327,155],{},[303,329,330],{},[53,331,82],{},[303,333,334],{},"Country code.",[282,336,337,342,347,350],{},[303,338,339],{},[53,340,341],{},"reject",[303,343,344],{},[53,345,346],{},"Collection\u003CString>?",[303,348,349],{},"profile list",[303,351,352,353,105],{},"Number prefixes to skip, e.g. ",[53,354,355],{},"listOf(\"4470\")",[118,357,359],{"className":120,"code":358,"language":122,"meta":123,"style":123},"val tzid = client.numbers.get(\"google\", 44, reject = listOf(\"4470\"))\n",[53,360,361],{"__ignoreMap":123},[127,362,363,365,368,370,372,374,376,378,380,382,385,387,390,392,395],{"class":129,"line":12},[127,364,181],{"class":136},[127,366,367],{"class":144}," tzid ",[127,369,187],{"class":136},[127,371,190],{"class":144},[127,373,59],{"class":140},[127,375,195],{"class":144},[127,377,199],{"class":198},[127,379,83],{"class":144},[127,381,86],{"class":161},[127,383,384],{"class":144},", reject ",[127,386,187],{"class":136},[127,388,389],{"class":140}," listOf",[127,391,195],{"class":144},[127,393,394],{"class":198},"\"4470\"",[127,396,397],{"class":144},"))\n",[49,399,209,400,403,404,213,406,83,409,83,411,83,413,83,416,83,419,105],{},[53,401,402],{},"NoNumberException","; ",[53,405,212],{},[53,407,408],{},"WARNING_LOW_BALANCE",[53,410,216],{},[53,412,219],{},[53,414,415],{},"EXCEEDED_CONCURRENT_OPERATIONS",[53,417,418],{},"INTERVAL_CONCURRENT_REQUESTS_ERROR",[53,420,421],{},"TRY_AGAIN_LATER",[107,423,62],{"id":424},"getwithnumber",[49,426,427,428,430],{},"Same as ",[53,429,59],{},", but returns the number right away.",[118,432,434],{"className":120,"code":433,"language":122,"meta":123,"style":123},"suspend fun getWithNumber(service: String, country: Int = 7, reject: Collection\u003CString>? = null): NumberOrder\n",[53,435,436],{"__ignoreMap":123},[127,437,438,440,442,445,447,449,451,453,455,457,459,461,463,465,467,469,471,473],{"class":129,"line":12},[127,439,133],{"class":132},[127,441,137],{"class":136},[127,443,444],{"class":140}," getWithNumber",[127,446,145],{"class":144},[127,448,149],{"class":148},[127,450,152],{"class":144},[127,452,155],{"class":148},[127,454,158],{"class":136},[127,456,162],{"class":161},[127,458,253],{"class":144},[127,460,256],{"class":148},[127,462,259],{"class":144},[127,464,149],{"class":148},[127,466,264],{"class":144},[127,468,187],{"class":136},[127,470,269],{"class":136},[127,472,165],{"class":144},[127,474,475],{"class":148},"NumberOrder\n",[49,477,478,481,482,83,485,488,489,492,493,83,496,499,500,83,503,83,506,105],{},[53,479,480],{},"NumberOrder",": ",[53,483,484],{},"tzid()",[53,486,487],{},"number()"," (with ",[53,490,491],{},"+","), ",[53,494,495],{},"country()",[53,497,498],{},"time()"," (seconds left), ",[53,501,502],{},"service()",[53,504,505],{},"title()",[53,507,508],{},"guardIntervalRemainingSeconds()",[118,510,512],{"className":120,"code":511,"language":122,"meta":123,"style":123},"val order = client.numbers.getWithNumber(\"google\", 44)\nprintln(\"${order.tzid()} ${order.number()}\")\n",[53,513,514,537],{"__ignoreMap":123},[127,515,516,518,521,523,525,527,529,531,533,535],{"class":129,"line":12},[127,517,181],{"class":136},[127,519,520],{"class":144}," order ",[127,522,187],{"class":136},[127,524,190],{"class":144},[127,526,62],{"class":140},[127,528,195],{"class":144},[127,530,199],{"class":198},[127,532,83],{"class":144},[127,534,86],{"class":161},[127,536,206],{"class":144},[127,538,539,542,544,547,550,553,555,558,561,564,566,569,571,573,575],{"class":129,"line":17},[127,540,541],{"class":140},"println",[127,543,195],{"class":144},[127,545,546],{"class":198},"\"",[127,548,549],{"class":136},"${",[127,551,552],{"class":144},"order.",[127,554,55],{"class":140},[127,556,557],{"class":144},"()",[127,559,560],{"class":136},"}",[127,562,563],{"class":136}," ${",[127,565,552],{"class":144},[127,567,568],{"class":140},"number",[127,570,557],{"class":144},[127,572,560],{"class":136},[127,574,546],{"class":198},[127,576,206],{"class":144},[49,578,579,580,105],{},"Errors: as ",[53,581,59],{},[107,583,584],{"id":584},"state",[49,586,587],{},"All operations of the account; an empty list when there are none.",[118,589,591],{"className":120,"code":590,"language":122,"meta":123,"style":123},"suspend fun state(messageToCode: Boolean = true, orderBy: OrderBy = OrderBy.ASC, msgList: Boolean = false): List\u003COperation>\n",[53,592,593],{"__ignoreMap":123},[127,594,595,597,599,602,605,608,610,614,617,620,622,625,627,629,632,634,637,639,642],{"class":129,"line":12},[127,596,133],{"class":132},[127,598,137],{"class":136},[127,600,601],{"class":140}," state",[127,603,604],{"class":144},"(messageToCode: ",[127,606,607],{"class":148},"Boolean",[127,609,158],{"class":136},[127,611,613],{"class":612},"sfNiH"," true",[127,615,616],{"class":144},", orderBy: ",[127,618,619],{"class":148},"OrderBy",[127,621,158],{"class":136},[127,623,624],{"class":144}," OrderBy.ASC, msgList: ",[127,626,607],{"class":148},[127,628,158],{"class":136},[127,630,631],{"class":612}," false",[127,633,165],{"class":144},[127,635,636],{"class":148},"List",[127,638,259],{"class":144},[127,640,641],{"class":148},"Operation",[127,643,644],{"class":144},">\n",[276,646,647,659],{},[279,648,649],{},[282,650,651,653,655,657],{},[285,652,287],{},[285,654,290],{},[285,656,293],{},[285,658,296],{},[298,660,661,687,712],{},[282,662,663,668,672,677],{},[303,664,665],{},[53,666,667],{},"messageToCode",[303,669,670],{},[53,671,607],{},[303,673,674],{},[53,675,676],{},"true",[303,678,679,682,683,686],{},[53,680,681],{},"msg()"," is the code only; ",[53,684,685],{},"false"," — the full SMS text.",[282,688,689,694,698,703],{},[303,690,691],{},[53,692,693],{},"orderBy",[303,695,696],{},[53,697,619],{},[303,699,700],{},[53,701,702],{},"ASC",[303,704,705,706,83,708,711],{},"Order of operations (",[53,707,702],{},[53,709,710],{},"DESC",").",[282,713,714,719,723,727],{},[303,715,716],{},[53,717,718],{},"msgList",[303,720,721],{},[53,722,607],{},[303,724,725],{},[53,726,685],{},[303,728,729,730,733,734,737,738,105],{},"All SMS in ",[53,731,732],{},"msgList()"," (",[53,735,736],{},"List\u003COperationSms>",") instead of ",[53,739,681],{},[49,741,742,481,744,83,746,83,749,83,751,83,753,83,755,83,758,83,760,83,762,83,764,766,767,769,770,773,774,777,778,781,782,785,786,789,790,792,793,795,796,798],{},[53,743,641],{},[53,745,484],{},[53,747,748],{},"response()",[53,750,487],{},[53,752,502],{},[53,754,495],{},[53,756,757],{},"sum()",[53,759,498],{},[53,761,681],{},[53,763,732],{},[53,765,508],{},", ….\n",[53,768,748],{}," is the state: ",[53,771,772],{},"TZ_INPOOL"," (number being assigned), ",[53,775,776],{},"TZ_NUM_WAIT"," (waiting for SMS), ",[53,779,780],{},"TZ_NUM_ANSWER"," (SMS arrived), ",[53,783,784],{},"TZ_OVER_OK"," (finished), ",[53,787,788],{},"ERROR_NO_ITEMS"," (failed), or ",[53,791,115],{}," when the server sent no state (no number could be issued). ",[53,794,681],{}," is ",[53,797,115],{}," until the first SMS. The server caches answers for a few seconds.",[118,800,802],{"className":120,"code":801,"language":122,"meta":123,"style":123},"for (op in client.numbers.state(orderBy = OrderBy.DESC)) {\n    println(\"${op.tzid()} ${op.response()} ${op.msg()}\")\n}\n",[53,803,804,828,874],{"__ignoreMap":123},[127,805,806,810,813,816,818,820,823,825],{"class":129,"line":12},[127,807,809],{"class":808},"s7zQu","for",[127,811,812],{"class":144}," (op ",[127,814,815],{"class":136},"in",[127,817,190],{"class":144},[127,819,584],{"class":140},[127,821,822],{"class":144},"(orderBy ",[127,824,187],{"class":136},[127,826,827],{"class":144}," OrderBy.DESC)) {\n",[127,829,830,833,835,837,839,842,844,846,848,850,852,855,857,859,861,863,866,868,870,872],{"class":129,"line":17},[127,831,832],{"class":140},"    println",[127,834,195],{"class":144},[127,836,546],{"class":198},[127,838,549],{"class":136},[127,840,841],{"class":144},"op.",[127,843,55],{"class":140},[127,845,557],{"class":144},[127,847,560],{"class":136},[127,849,563],{"class":136},[127,851,841],{"class":144},[127,853,854],{"class":140},"response",[127,856,557],{"class":144},[127,858,560],{"class":136},[127,860,563],{"class":136},[127,862,841],{"class":144},[127,864,865],{"class":140},"msg",[127,867,557],{"class":144},[127,869,560],{"class":136},[127,871,546],{"class":198},[127,873,206],{"class":144},[127,875,876],{"class":129,"line":22},[127,877,878],{"class":144},"}\n",[107,880,66],{"id":881},"stateone",[49,883,884],{},"One operation.",[118,886,888],{"className":120,"code":887,"language":122,"meta":123,"style":123},"suspend fun stateOne(tzid: Long, messageToCode: Boolean = true, msgList: Boolean = false): Operation\n",[53,889,890],{"__ignoreMap":123},[127,891,892,894,896,899,902,905,908,910,912,914,917,919,921,923,925],{"class":129,"line":12},[127,893,133],{"class":132},[127,895,137],{"class":136},[127,897,898],{"class":140}," stateOne",[127,900,901],{"class":144},"(tzid: ",[127,903,904],{"class":148},"Long",[127,906,907],{"class":144},", messageToCode: ",[127,909,607],{"class":148},[127,911,158],{"class":136},[127,913,613],{"class":612},[127,915,916],{"class":144},", msgList: ",[127,918,607],{"class":148},[127,920,158],{"class":136},[127,922,631],{"class":612},[127,924,165],{"class":144},[127,926,927],{"class":148},"Operation\n",[118,929,931],{"className":120,"code":930,"language":122,"meta":123,"style":123},"val op = client.numbers.stateOne(tzid)\nif (op.response() == \"TZ_NUM_ANSWER\") println(op.msg())\n",[53,932,933,949],{"__ignoreMap":123},[127,934,935,937,940,942,944,946],{"class":129,"line":12},[127,936,181],{"class":136},[127,938,939],{"class":144}," op ",[127,941,187],{"class":136},[127,943,190],{"class":144},[127,945,66],{"class":140},[127,947,948],{"class":144},"(tzid)\n",[127,950,951,954,957,959,962,965,968,971,973,976,978],{"class":129,"line":17},[127,952,953],{"class":808},"if",[127,955,956],{"class":144}," (op.",[127,958,854],{"class":140},[127,960,961],{"class":144},"() ",[127,963,964],{"class":136},"==",[127,966,967],{"class":198}," \"TZ_NUM_ANSWER\"",[127,969,970],{"class":144},") ",[127,972,541],{"class":140},[127,974,975],{"class":144},"(op.",[127,977,865],{"class":140},[127,979,980],{"class":144},"())\n",[49,982,209,983,213,985,988],{},[53,984,212],{},[53,986,987],{},"ERROR_NO_OPERATIONS"," when the operation does not exist (any more).",[107,990,70],{"id":991},"waitcode",[49,993,994,995,998,999,105],{},"Poll the operation until a code arrives, then close it and return the code. Suspends with ",[53,996,997],{},"delay"," between polls (no thread is blocked while waiting), so it is cancellable and runs on virtual time under ",[53,1000,1001],{},"runTest",[118,1003,1005],{"className":120,"code":1004,"language":122,"meta":123,"style":123},"suspend fun waitCode(\n    tzid: Long,\n    interval: Duration = 5.seconds,\n    timeout: Duration = 10.minutes,\n    keepOpen: Boolean = false,\n    fullMessage: Boolean = false,\n    since: String? = null,\n): String\n",[53,1006,1007,1019,1029,1045,1060,1073,1086,1102],{"__ignoreMap":123},[127,1008,1009,1011,1013,1016],{"class":129,"line":12},[127,1010,133],{"class":132},[127,1012,137],{"class":136},[127,1014,1015],{"class":140}," waitCode",[127,1017,1018],{"class":144},"(\n",[127,1020,1021,1024,1026],{"class":129,"line":17},[127,1022,1023],{"class":144},"    tzid: ",[127,1025,904],{"class":148},[127,1027,1028],{"class":144},",\n",[127,1030,1031,1034,1037,1039,1042],{"class":129,"line":22},[127,1032,1033],{"class":144},"    interval: ",[127,1035,1036],{"class":148},"Duration",[127,1038,158],{"class":136},[127,1040,1041],{"class":161}," 5",[127,1043,1044],{"class":144},".seconds,\n",[127,1046,1047,1050,1052,1054,1057],{"class":129,"line":27},[127,1048,1049],{"class":144},"    timeout: ",[127,1051,1036],{"class":148},[127,1053,158],{"class":136},[127,1055,1056],{"class":161}," 10",[127,1058,1059],{"class":144},".minutes,\n",[127,1061,1062,1065,1067,1069,1071],{"class":129,"line":32},[127,1063,1064],{"class":144},"    keepOpen: ",[127,1066,607],{"class":148},[127,1068,158],{"class":136},[127,1070,631],{"class":612},[127,1072,1028],{"class":144},[127,1074,1075,1078,1080,1082,1084],{"class":129,"line":37},[127,1076,1077],{"class":144},"    fullMessage: ",[127,1079,607],{"class":148},[127,1081,158],{"class":136},[127,1083,631],{"class":612},[127,1085,1028],{"class":144},[127,1087,1088,1091,1093,1096,1098,1100],{"class":129,"line":42},[127,1089,1090],{"class":144},"    since: ",[127,1092,149],{"class":148},[127,1094,1095],{"class":144},"? ",[127,1097,187],{"class":136},[127,1099,269],{"class":136},[127,1101,1028],{"class":144},[127,1103,1105,1107],{"class":129,"line":1104},8,[127,1106,165],{"class":144},[127,1108,1109],{"class":148},"String\n",[276,1111,1112,1124],{},[279,1113,1114],{},[282,1115,1116,1118,1120,1122],{},[285,1117,287],{},[285,1119,290],{},[285,1121,293],{},[285,1123,296],{},[298,1125,1126,1147,1164,1190,1208],{},[282,1127,1128,1133,1137,1140],{},[303,1129,1130],{},[53,1131,1132],{},"interval",[303,1134,1135],{},[53,1136,1036],{},[303,1138,1139],{},"5 s",[303,1141,1142,1143,1146],{},"Poll interval; ",[53,1144,1145],{},"Duration.ZERO"," polls back to back (with the mock).",[282,1148,1149,1154,1158,1161],{},[303,1150,1151],{},[53,1152,1153],{},"timeout",[303,1155,1156],{},[53,1157,1036],{},[303,1159,1160],{},"10 min",[303,1162,1163],{},"Give up after; one last poll happens at the deadline.",[282,1165,1166,1171,1175,1179],{},[303,1167,1168],{},[53,1169,1170],{},"keepOpen",[303,1172,1173],{},[53,1174,607],{},[303,1176,1177],{},[53,1178,685],{},[303,1180,1181,1182,1185,1186,1189],{},"Call ",[53,1183,1184],{},"next(tzid)"," instead of ",[53,1187,1188],{},"close(tzid)",", to wait for another SMS.",[282,1191,1192,1197,1201,1205],{},[303,1193,1194],{},[53,1195,1196],{},"fullMessage",[303,1198,1199],{},[53,1200,607],{},[303,1202,1203],{},[53,1204,685],{},[303,1206,1207],{},"Return the full SMS text instead of the code.",[282,1209,1210,1215,1220,1224],{},[303,1211,1212],{},[53,1213,1214],{},"since",[303,1216,1217],{},[53,1218,1219],{},"String?",[303,1221,1222],{},[53,1223,115],{},[303,1225,1226],{},"Ignore this value (the previous code).",[49,1228,1229,1230,1233,1234,213,1236,1238,1239,1242,1243,1245,1246,1248],{},"Transient errors are retried until the timeout: ",[53,1231,1232],{},"TransportException",", and ",[53,1235,212],{},[53,1237,421],{}," (the HTTP 429 rate limit), ",[53,1240,1241],{},"ERROR_UNDEFINED"," and ",[53,1244,418],{},". Any other ",[53,1247,212],{}," is thrown at once.",[118,1250,1252],{"className":120,"code":1251,"language":122,"meta":123,"style":123},"import kotlin.time.Duration.Companion.minutes\n\nval first = client.numbers.waitCode(tzid, keepOpen = true)\nval second = client.numbers.waitCode(tzid, since = first, timeout = 5.minutes)\n",[53,1253,1254,1262,1268,1290],{"__ignoreMap":123},[127,1255,1256,1259],{"class":129,"line":12},[127,1257,1258],{"class":136},"import",[127,1260,1261],{"class":148}," kotlin.time.Duration.Companion.minutes\n",[127,1263,1264],{"class":129,"line":17},[127,1265,1267],{"emptyLinePlaceholder":1266},true,"\n",[127,1269,1270,1272,1275,1277,1279,1281,1284,1286,1288],{"class":129,"line":22},[127,1271,181],{"class":136},[127,1273,1274],{"class":144}," first ",[127,1276,187],{"class":136},[127,1278,190],{"class":144},[127,1280,70],{"class":140},[127,1282,1283],{"class":144},"(tzid, keepOpen ",[127,1285,187],{"class":136},[127,1287,613],{"class":612},[127,1289,206],{"class":144},[127,1291,1292,1294,1297,1299,1301,1303,1306,1308,1311,1313,1315],{"class":129,"line":27},[127,1293,181],{"class":136},[127,1295,1296],{"class":144}," second ",[127,1298,187],{"class":136},[127,1300,190],{"class":144},[127,1302,70],{"class":140},[127,1304,1305],{"class":144},"(tzid, since ",[127,1307,187],{"class":136},[127,1309,1310],{"class":144}," first, timeout ",[127,1312,187],{"class":136},[127,1314,1041],{"class":161},[127,1316,1317],{"class":144},".minutes)\n",[49,1319,209,1320,403,1323,1325,1326,67,1328,1330,1331,1333,1334,1336,1337,1333,1339,6,1341,105],{},[53,1321,1322],{},"WaitTimeoutException",[53,1324,212],{}," with code ",[53,1327,784],{},[53,1329,788],{}," when the operation ended without a new code; any other non-transient ",[53,1332,212],{}," from ",[53,1335,66],{},", and any ",[53,1338,212],{},[53,1340,74],{},[53,1342,1343],{},"next",[107,1345,1343],{"id":1343},[49,1347,1348],{},"Switch the operation to its next SMS and keep it open (for services that send several SMS).",[118,1350,1352],{"className":120,"code":1351,"language":122,"meta":123,"style":123},"suspend fun next(tzid: Long)\n",[53,1353,1354],{"__ignoreMap":123},[127,1355,1356,1358,1360,1363,1365,1367],{"class":129,"line":12},[127,1357,133],{"class":132},[127,1359,137],{"class":136},[127,1361,1362],{"class":140}," next",[127,1364,901],{"class":144},[127,1366,904],{"class":148},[127,1368,206],{"class":144},[118,1370,1372],{"className":120,"code":1371,"language":122,"meta":123,"style":123},"client.numbers.next(tzid)\n",[53,1373,1374],{"__ignoreMap":123},[127,1375,1376,1379,1381],{"class":129,"line":12},[127,1377,1378],{"class":144},"client.numbers.",[127,1380,1343],{"class":140},[127,1382,948],{"class":144},[107,1384,74],{"id":74},[49,1386,1387,1388,1390],{},"Finish the operation. An operation without SMS can be closed only after its guard interval (",[53,1389,508],{},"); every attempt locks the tzid for 5 s.",[118,1392,1394],{"className":120,"code":1393,"language":122,"meta":123,"style":123},"suspend fun close(tzid: Long)\n",[53,1395,1396],{"__ignoreMap":123},[127,1397,1398,1400,1402,1405,1407,1409],{"class":129,"line":12},[127,1399,133],{"class":132},[127,1401,137],{"class":136},[127,1403,1404],{"class":140}," close",[127,1406,901],{"class":144},[127,1408,904],{"class":148},[127,1410,206],{"class":144},[118,1412,1414],{"className":120,"code":1413,"language":122,"meta":123,"style":123},"client.numbers.close(tzid)\n",[53,1415,1416],{"__ignoreMap":123},[127,1417,1418,1420,1422],{"class":129,"line":12},[127,1419,1378],{"class":144},[127,1421,74],{"class":140},[127,1423,948],{"class":144},[49,1425,209,1426,213,1428,83,1431,83,1433,105],{},[53,1427,212],{},[53,1429,1430],{},"NO_COMPLETE_TZID",[53,1432,418],{},[53,1434,1435],{},"ERROR_WRONG_TZID",[107,1437,78],{"id":78},[49,1439,1440],{},"Finish the operation and report the number as bad. Only before any SMS arrived.",[118,1442,1444],{"className":120,"code":1443,"language":122,"meta":123,"style":123},"suspend fun ban(tzid: Long)\n",[53,1445,1446],{"__ignoreMap":123},[127,1447,1448,1450,1452,1455,1457,1459],{"class":129,"line":12},[127,1449,133],{"class":132},[127,1451,137],{"class":136},[127,1453,1454],{"class":140}," ban",[127,1456,901],{"class":144},[127,1458,904],{"class":148},[127,1460,206],{"class":144},[118,1462,1464],{"className":120,"code":1463,"language":122,"meta":123,"style":123},"client.numbers.ban(tzid)\n",[53,1465,1466],{"__ignoreMap":123},[127,1467,1468,1470,1472],{"class":129,"line":12},[127,1469,1378],{"class":144},[127,1471,78],{"class":140},[127,1473,948],{"class":144},[49,1475,579,1476,403,1478,1325,1480,1483],{},[53,1477,74],{},[53,1479,212],{},[53,1481,1482],{},"\"0\""," when the operation already has an SMS — nothing is changed then.",[107,1485,97],{"id":97},[49,1487,1488,1489,105],{},"Services, prices and stock of every country, keyed by country code. No API key needed. The answer is large (a few MB); prefer ",[53,1490,1491],{},"tariffsOne",[118,1493,1495],{"className":120,"code":1494,"language":122,"meta":123,"style":123},"suspend fun tariffs(): Map\u003CString, CountryStat>\n",[53,1496,1497],{"__ignoreMap":123},[127,1498,1499,1501,1503,1506,1509,1512,1514,1516,1518,1521],{"class":129,"line":12},[127,1500,133],{"class":132},[127,1502,137],{"class":136},[127,1504,1505],{"class":140}," tariffs",[127,1507,1508],{"class":144},"(): ",[127,1510,1511],{"class":148},"Map",[127,1513,259],{"class":144},[127,1515,149],{"class":148},[127,1517,83],{"class":144},[127,1519,1520],{"class":148},"CountryStat",[127,1522,644],{"class":144},[49,1524,1525,481,1527,83,1530,83,1533,83,1536,83,1539,83,1542,83,1545,83,1548,403,1551,1553,1554,1557,1558,481,1561,733,1564,1566,1567,83,1570,83,1572,83,1575,83,1578,83,1580,105],{},[53,1526,1520],{},[53,1528,1529],{},"name()",[53,1531,1532],{},"localeName()",[53,1534,1535],{},"position()",[53,1537,1538],{},"code()",[53,1540,1541],{},"other()",[53,1543,1544],{},"isNew()",[53,1546,1547],{},"enabled()",[53,1549,1550],{},"services()",[53,1552,1550],{}," maps ",[53,1555,1556],{},"service_\u003Cslug>"," to ",[53,1559,1560],{},"ServiceStat",[53,1562,1563],{},"count()",[53,1565,115],{}," when unknown), ",[53,1568,1569],{},"popular()",[53,1571,1538],{},[53,1573,1574],{},"price()",[53,1576,1577],{},"id()",[53,1579,502],{},[53,1581,1582],{},"slug()",[118,1584,1586],{"className":120,"code":1585,"language":122,"meta":123,"style":123},"val all = client.numbers.tariffs()\nprintln(\"${all.size} countries\")\n",[53,1587,1588,1604],{"__ignoreMap":123},[127,1589,1590,1592,1595,1597,1599,1601],{"class":129,"line":12},[127,1591,181],{"class":136},[127,1593,1594],{"class":144}," all ",[127,1596,187],{"class":136},[127,1598,190],{"class":144},[127,1600,97],{"class":140},[127,1602,1603],{"class":144},"()\n",[127,1605,1606,1608,1610,1612,1614,1617,1619,1622],{"class":129,"line":17},[127,1607,541],{"class":140},[127,1609,195],{"class":144},[127,1611,546],{"class":198},[127,1613,549],{"class":136},[127,1615,1616],{"class":144},"all.size",[127,1618,560],{"class":136},[127,1620,1621],{"class":198}," countries\"",[127,1623,206],{"class":144},[107,1625,1491],{"id":1626},"tariffsone",[49,1628,1629],{},"Services, prices and stock of one country.",[118,1631,1633],{"className":120,"code":1632,"language":122,"meta":123,"style":123},"suspend fun tariffsOne(country: Int = 7): CountryStat\n",[53,1634,1635],{"__ignoreMap":123},[127,1636,1637,1639,1641,1644,1647,1649,1651,1653,1655],{"class":129,"line":12},[127,1638,133],{"class":132},[127,1640,137],{"class":136},[127,1642,1643],{"class":140}," tariffsOne",[127,1645,1646],{"class":144},"(country: ",[127,1648,155],{"class":148},[127,1650,158],{"class":136},[127,1652,162],{"class":161},[127,1654,165],{"class":144},[127,1656,1657],{"class":148},"CountryStat\n",[118,1659,1661],{"className":120,"code":1660,"language":122,"meta":123,"style":123},"val uk = client.numbers.tariffsOne(44)\nfor (s in uk.services().values) println(\"${s.slug()} ${s.price()} ${s.count()}\")\n",[53,1662,1663,1682],{"__ignoreMap":123},[127,1664,1665,1667,1670,1672,1674,1676,1678,1680],{"class":129,"line":12},[127,1666,181],{"class":136},[127,1668,1669],{"class":144}," uk ",[127,1671,187],{"class":136},[127,1673,190],{"class":144},[127,1675,1491],{"class":140},[127,1677,195],{"class":144},[127,1679,86],{"class":161},[127,1681,206],{"class":144},[127,1683,1684,1686,1689,1691,1694,1697,1700,1702,1704,1706,1708,1711,1714,1716,1718,1720,1722,1724,1726,1728,1730,1732,1735,1737,1739,1741],{"class":129,"line":17},[127,1685,809],{"class":808},[127,1687,1688],{"class":144}," (s ",[127,1690,815],{"class":136},[127,1692,1693],{"class":144}," uk.",[127,1695,1696],{"class":140},"services",[127,1698,1699],{"class":144},"().values) ",[127,1701,541],{"class":140},[127,1703,195],{"class":144},[127,1705,546],{"class":198},[127,1707,549],{"class":136},[127,1709,1710],{"class":144},"s.",[127,1712,1713],{"class":140},"slug",[127,1715,557],{"class":144},[127,1717,560],{"class":136},[127,1719,563],{"class":136},[127,1721,1710],{"class":144},[127,1723,109],{"class":140},[127,1725,557],{"class":144},[127,1727,560],{"class":136},[127,1729,563],{"class":136},[127,1731,1710],{"class":144},[127,1733,1734],{"class":140},"count",[127,1736,557],{"class":144},[127,1738,560],{"class":136},[127,1740,546],{"class":198},[127,1742,206],{"class":144},[49,1744,209,1745,213,1747,105],{},[53,1746,212],{},[53,1748,1749],{},"NO_COUNTRY",[1751,1752,1753],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}",{"title":123,"searchDepth":17,"depth":17,"links":1755},[1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766],{"id":109,"depth":17,"text":109},{"id":59,"depth":17,"text":59},{"id":424,"depth":17,"text":62},{"id":584,"depth":17,"text":584},{"id":881,"depth":17,"text":66},{"id":991,"depth":17,"text":70},{"id":1343,"depth":17,"text":1343},{"id":74,"depth":17,"text":74},{"id":78,"depth":17,"text":78},{"id":97,"depth":17,"text":97},{"id":1626,"depth":17,"text":1491},"Order a number, read its SMS, close it — client.numbers.","md",{},{"order":12},{"title":9,"description":1767},"7F1HnnCEL5sSWkxlCgWU8ydmKui0RwRUF5a_CuWTCeY",[1774,1776],{"title":24,"path":25,"stem":26,"description":1775,"order":27},"Public numbers and their SMS — client.free. No API key needed.",{"title":14,"path":15,"stem":16,"description":1777,"order":17},"Rent a number for days and receive every SMS sent to it — client.rent.",1795165467552]