Задать вопрос
@MSRafiyenko

Где взять список стран из одноклассников API?

Доброго всем времени суток!

Пишем единое проложение для всех соц сетей, начали доставать из полей пользователя страну в одноклассниках API и получили: RUSSIAN_FEDERATION, а в приложении уже используем свою конвенцию, где Россия - это RU.

Вопрос: где достать полный список стран из одноклассники API в их конвенции, чтобы хардкодом создать таблицу соответствий? Либо, может кто писал уже тулзовину такую, поделитесь пожалуйста.

Всем заранее спасибо за ответы!
  • Вопрос задан
  • 150 просмотров
Подписаться 1 Оценить Комментировать
Решения вопроса 1
Vjaka
@Vjaka
Платформа игр (Одноклассники)
AFGHANISTAN("AF", "AFGHANISTAN"),

ÅLAND_ISLANDS("AX", "ÅLAND_ISLANDS"),

AK("AK", "AK"),

ALBANIA("AL", "ALBANIA"),

ALGERIA("DZ", "ALGERIA"),

AMERICAN_SAMOA("AS", "AMERICAN_SAMOA"),

ABHAZIA("AB", "ABHAZIA"),

ANDORRA("AD", "ANDORRA"),

ANGOLA("AO", "ANGOLA"),

ANGUILLA("AI", "ANGUILLA"),

ANTARCTICA("AQ", "ANTARCTICA"),

ANTIGUA_AND_BARBUDA("AG", "ANTIGUA_AND_BARBUDA"),

ARGENTINA("AR", "ARGENTINA"),

ARMENIA("AM", "ARMENIA"),

ARUBA("AW", "ARUBA"),

AUSTRALIA("AU", "AUSTRALIA"),

AUSTRIA("AT", "AUSTRIA"),

AZERBAIJAN("AZ", "AZERBAIJAN"),

BAHAMAS("BS", "BAHAMAS"),

BAHRAIN("BH", "BAHRAIN"),

BANGLADESH("BD", "BANGLADESH"),

BARBADOS("BB", "BARBADOS"),

BELARUS("BY", "BELARUS"),

BELGIUM("BE", "BELGIUM"),

BELIZE("BZ", "BELIZE"),

BENIN("BJ", "BENIN"),

BERMUDA("BM", "BERMUDA"),

BHUTAN("BT", "BHUTAN"),

BOLIVIA_PLURINATIONAL_STATE_OF("BO", "BOLIVIA,_PLURINATIONAL_STATE_OF"),

BOSNIA_AND_HERZEGOVINA("BA", "BOSNIA_AND_HERZEGOVINA"),

BOTSWANA("BW", "BOTSWANA"),

BOUVET_ISLAND("BV", "BOUVET_ISLAND"),

BRAZIL("BR", "BRAZIL"),

BRITISH_INDIAN_OCEAN_TERRITORY("IO", "BRITISH_INDIAN_OCEAN_TERRITORY"),

BRUNEI_DARUSSALAM("BN", "BRUNEI_DARUSSALAM"),

BULGARIA("BG", "BULGARIA"),

BURKINA_FASO("BF", "BURKINA_FASO"),

BURUNDI("BI", "BURUNDI"),

CAMBODIA("KH", "CAMBODIA"),

CAMEROON("CM", "CAMEROON"),

CANADA("CA", "CANADA"),

CAPE_VERDE("CV", "CAPE_VERDE"),

CAYMAN_ISLANDS("KY", "CAYMAN_ISLANDS"),

CENTRAL_AFRICAN_REPUBLIC("CF", "CENTRAL_AFRICAN_REPUBLIC"),

CHAD("TD", "CHAD"),

CHILE("CL", "CHILE"),

CHINA("CN", "CHINA"),

CHRISTMAS_ISLAND("CX", "CHRISTMAS_ISLAND"),

COCOS_KEELING_ISLANDS("CC", "COCOS_(KEELING)_ISLANDS"),

COLOMBIA("CO", "COLOMBIA"),

COMOROS("KM", "COMOROS"),

CONGO("CG", "CONGO"),

CONGO_THE_DEMOCRATIC_REPUBLIC_OF_THE("CD", "CONGO,_THE_DEMOCRATIC_REPUBLIC_OF_THE"),

COOK_ISLANDS("CK", "COOK_ISLANDS"),

COSTA_RICA("CR", "COSTA_RICA"),

CÔTE_DIVOIRE("CI", "CÔTE_D' IVOIRE"),

CROATIA("HR", "CROATIA"),

CUBA("CU", "CUBA"),

CYPRUS("CY", "CYPRUS"),

CZECH_REPUBLIC("CZ", "CZECH_REPUBLIC"),

DENMARK("DK", "DENMARK"),

DJIBOUTI("DJ", "DJIBOUTI"),

DOMINICA("DM", "DOMINICA"),

DOMINICAN_REPUBLIC("DO", "DOMINICAN_REPUBLIC"),

ECUADOR("EC", "ECUADOR"),

EGYPT("EG", "EGYPT"),

EL_SALVADOR("SV", "EL_SALVADOR"),

EQUATORIAL_GUINEA("GQ", "EQUATORIAL_GUINEA"),

ERITREA("ER", "ERITREA"),

ESTONIA("EE", "ESTONIA"),

ETHIOPIA("ET", "ETHIOPIA"),

FALKLAND_ISLANDS_MALVINAS("FK", "FALKLAND_ISLANDS_(MALVINAS)"),

FAROE_ISLANDS("FO", "FAROE_ISLANDS"),

FIJI("FJ", "FIJI"),

FINLAND("FI", "FINLAND"),

FRANCE("FR", "FRANCE"),

FRENCH_GUIANA("GF", "FRENCH_GUIANA"),

FRENCH_POLYNESIA("PF", "FRENCH_POLYNESIA"),

FRENCH_SOUTHERN_TERRITORIES("TF", "FRENCH_SOUTHERN_TERRITORIES"),

GABON("GA", "GABON"),

GAMBIA("GM", "GAMBIA"),

GEORGIA("GE", "GEORGIA"),

GERMANY("DE", "GERMANY"),

GHANA("GH", "GHANA"),

GIBRALTAR("GI", "GIBRALTAR"),

GREECE("GR", "GREECE"),

GREENLAND("GL", "GREENLAND"),

GRENADA("GD", "GRENADA"),

GUADELOUPE("GP", "GUADELOUPE"),

GUAM("GU", "GUAM"),

GUATEMALA("GT", "GUATEMALA"),

GUERNSEY("GG", "GUERNSEY"),

GUINEA("GN", "GUINEA"),

GUINEA_BISSAU("GW", "GUINEA-BISSAU"),

GUYANA("GY", "GUYANA"),

HAITI("HT", "HAITI"),

HEARD_ISLAND_AND_MCDONALD_ISLANDS("HM", "HEARD_ISLAND_AND_MCDONALD_ISLANDS"),

HOLY_SEE_VATICAN_CITY_STATE("VA", "HOLY_SEE_(VATICAN_CITY_STATE)"),

HONDURAS("HN", "HONDURAS"),

HONG_KONG("HK", "HONG_KONG"),

HUNGARY("HU", "HUNGARY"),

ICELAND("IS", "ICELAND"),

INDIA("IN", "INDIA"),

INDONESIA("ID", "INDONESIA"),

IRAN_ISLAMIC_REPUBLIC_OF("IR", "IRAN,_ISLAMIC_REPUBLIC_OF"),

IRAQ("IQ", "IRAQ"),

IRELAND("IE", "IRELAND"),

ISLE_OF_MAN("IM", "ISLE_OF_MAN"),

ISRAEL("IL", "ISRAEL"),

ITALY("IT", "ITALY"),

JAMAICA("JM", "JAMAICA"),

JAPAN("JP", "JAPAN"),

JERSEY("JE", "JERSEY"),

JORDAN("JO", "JORDAN"),

KAZAKHSTAN("KZ", "KAZAKHSTAN"),

KENYA("KE", "KENYA"),

KIRIBATI("KI", "KIRIBATI"),

KOREA_DEMOCRATIC_PEOPLES_REPUBLIC_OF("KP", "KOREA,_DEMOCRATIC_PEOPLE' S_REPUBLIC_OF"),

KOREA_REPUBLIC_OF("KR", "KOREA,_REPUBLIC_OF"),

KUWAIT("KW", "KUWAIT"),

KYRGYZSTAN("KG", "KYRGYZSTAN"),

LAO_PEOPLES_DEMOCRATIC_REPUBLIC("LA", "LAO_PEOPLE' S_DEMOCRATIC_REPUBLIC"),

LATVIA("LV", "LATVIA"),

LEBANON("LB", "LEBANON"),

LESOTHO("LS", "LESOTHO"),

LIBERIA("LR", "LIBERIA"),

LIBYAN_ARAB_JAMAHIRIYA("LY", "LIBYAN_ARAB_JAMAHIRIYA"),

LIECHTENSTEIN("LI", "LIECHTENSTEIN"),

LITHUANIA("LT", "LITHUANIA"),

LUXEMBOURG("LU", "LUXEMBOURG"),

MACAO("MO", "MACAO"),

MACEDONIA_THE_FORMER_YUGOSLAV_REPUBLIC_OF("MK", "MACEDONIA,_THE_FORMER_YUGOSLAV_REPUBLIC_OF"),

MADAGASCAR("MG", "MADAGASCAR"),

MALAWI("MW", "MALAWI"),

MALAYSIA("MY", "MALAYSIA"),

MALDIVES("MV", "MALDIVES"),

MALI("ML", "MALI"),

MALTA("MT", "MALTA"),

MARSHALL_ISLANDS("MH", "MARSHALL_ISLANDS"),

MARTINIQUE("MQ", "MARTINIQUE"),

MAURITANIA("MR", "MAURITANIA"),

MAURITIUS("MU", "MAURITIUS"),

MAYOTTE("YT", "MAYOTTE"),

MEXICO("MX", "MEXICO"),

MICRONESIA_FEDERATED_STATES_OF("FM", "MICRONESIA,_FEDERATED_STATES_OF"),

MOLDOVA_REPUBLIC_OF("MD", "MOLDOVA,_REPUBLIC_OF"),

MONACO("MC", "MONACO"),

MONGOLIA("MN", "MONGOLIA"),

MONTENEGRO("ME", "MONTENEGRO"),

MONTSERRAT("MS", "MONTSERRAT"),

MOROCCO("MA", "MOROCCO"),

MOZAMBIQUE("MZ", "MOZAMBIQUE"),

MYANMAR("MM", "MYANMAR"),

NAMIBIA("NA", "NAMIBIA"),

NAURU("NR", "NAURU"),

NEPAL("NP", "NEPAL"),

NETHERLANDS("NL", "NETHERLANDS"),

NETHERLANDS_ANTILLES("AN", "NETHERLANDS_ANTILLES"),

NEW_CALEDONIA("NC", "NEW_CALEDONIA"),

NEW_ZEALAND("NZ", "NEW_ZEALAND"),

NICARAGUA("NI", "NICARAGUA"),

NIGER("NE", "NIGER"),

NIGERIA("NG", "NIGERIA"),

NIUE("NU", "NIUE"),

NORFOLK_ISLAND("NF", "NORFOLK_ISLAND"),

NORTHERN_MARIANA_ISLANDS("MP", "NORTHERN_MARIANA_ISLANDS"),

NORWAY("NO", "NORWAY"),

OMAN("OM", "OMAN"),

PAKISTAN("PK", "PAKISTAN"),

PALAU("PW", "PALAU"),

PALESTINIAN_TERRITORY_OCCUPIED("PS", "PALESTINIAN_TERRITORY,_OCCUPIED"),

PANAMA("PA", "PANAMA"),

PAPUA_NEW_GUINEA("PG", "PAPUA_NEW_GUINEA"),

PARAGUAY("PY", "PARAGUAY"),

PERU("PE", "PERU"),

PHILIPPINES("PH", "PHILIPPINES"),

PITCAIRN("PN", "PITCAIRN"),

POLAND("PL", "POLAND"),

PORTUGAL("PT", "PORTUGAL"),

PUERTO_RICO("PR", "PUERTO_RICO"),

QATAR("QA", "QATAR"),

RÉUNION("RE", "RÉUNION"),

ROMANIA("RO", "ROMANIA"),

RUSSIAN_FEDERATION("RU", "RUSSIAN_FEDERATION"),

RWANDA("RW", "RWANDA"),

SAINT_BARTHÉLEMY("BL", "SAINT_BARTHÉLEMY"),

SAINT_HELENA("SH", "SAINT_HELENA"),

SAINT_KITTS_AND_NEVIS("KN", "SAINT_KITTS_AND_NEVIS"),

SAINT_LUCIA("LC", "SAINT_LUCIA"),

SAINT_MARTIN("MF", "SAINT_MARTIN"),

SAINT_PIERRE_AND_MIQUELON("PM", "SAINT_PIERRE_AND_MIQUELON"),

SAINT_VINCENT_AND_THE_GRENADINES("VC", "SAINT_VINCENT_AND_THE_GRENADINES"),

SAMOA("WS", "SAMOA"),

SAN_MARINO("SM", "SAN_MARINO"),

SAO_TOME_AND_PRINCIPE("ST", "SAO_TOME_AND_PRINCIPE"),

SAUDI_ARABIA("SA", "SAUDI_ARABIA"),

SENEGAL("SN", "SENEGAL"),

SERBIA("RS", "SERBIA"),

SEYCHELLES("SC", "SEYCHELLES"),

SIERRA_LEONE("SL", "SIERRA_LEONE"),

SINGAPORE("SG", "SINGAPORE"),

SLOVAKIA("SK", "SLOVAKIA"),

SLOVENIA("SI", "SLOVENIA"),

SOLOMON_ISLANDS("SB", "SOLOMON_ISLANDS"),

SOMALIA("SO", "SOMALIA"),

SOUTH_AFRICA("ZA", "SOUTH_AFRICA"),

SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS("GS", "SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS"),

SPAIN("ES", "SPAIN"),

SRI_LANKA("LK", "SRI_LANKA"),

SUDAN("SD", "SUDAN"),

SURINAME("SR", "SURINAME"),

SVALBARD_AND_JAN_MAYEN("SJ", "SVALBARD_AND_JAN_MAYEN"),

SWAZILAND("SZ", "SWAZILAND"),

SWEDEN("SE", "SWEDEN"),

SWITZERLAND("CH", "SWITZERLAND"),

SYRIAN_ARAB_REPUBLIC("SY", "SYRIAN_ARAB_REPUBLIC"),

TAIWAN_PROVINCE_OF_CHINA("TW", "TAIWAN,_PROVINCE_OF_CHINA"),

TAJIKISTAN("TJ", "TAJIKISTAN"),

TANZANIA_UNITED_REPUBLIC_OF("TZ", "TANZANIA,_UNITED_REPUBLIC_OF"),

THAILAND("TH", "THAILAND"),

TIMOR_LESTE("TL", "TIMOR-LESTE"),

TOGO("TG", "TOGO"),

TOKELAU("TK", "TOKELAU"),

TONGA("TO", "TONGA"),

TRINIDAD_AND_TOBAGO("TT", "TRINIDAD_AND_TOBAGO"),

TUNISIA("TN", "TUNISIA"),

TURKEY("TR", "TURKEY"),

TURKMENISTAN("TM", "TURKMENISTAN"),

TURKS_AND_CAICOS_ISLANDS("TC", "TURKS_AND_CAICOS_ISLANDS"),

TUVALU("TV", "TUVALU"),

UGANDA("UG", "UGANDA"),

UKRAINE("UA", "UKRAINE"),

UNITED_ARAB_EMIRATES("AE", "UNITED_ARAB_EMIRATES"),

UNITED_KINGDOM("GB", "UNITED_KINGDOM"),

UNITED_STATES("US", "UNITED_STATES"),

UNITED_STATES_MINOR_OUTLYING_ISLANDS("UM", "UNITED_STATES_MINOR_OUTLYING_ISLANDS"),

URUGUAY("UY", "URUGUAY"),

UZBEKISTAN("UZ", "UZBEKISTAN"),

VANUATU("VU", "VANUATU"),

VENEZUELA_BOLIVARIAN_REPUBLIC_OF("VE", "VENEZUELA,_BOLIVARIAN_REPUBLIC_OF"),

VIET_NAM("VN", "VIET_NAM"),

VIRGIN_ISLANDS_BRITISH("VG", "VIRGIN_ISLANDS,_BRITISH"),

VIRGIN_ISLANDS_US("VI", "VIRGIN_ISLANDS,_U.S."),

WALLIS_AND_FUTUNA("WF", "WALLIS_AND_FUTUNA"),

WESTERN_SAHARA("EH", "WESTERN_SAHARA"),

YEMEN("YE", "YEMEN"),

YO("YO", "YO"),

ZAMBIA("ZM", "ZAMBIA"),

ZIMBABWE("ZW", "ZIMBABWE");
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы