-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
759 additions
and
8 deletions.
There are no files selected for viewing
Binary file not shown.
24 changes: 23 additions & 1 deletion
24
src/dadata.ru/СервисРаспознанияАдресов/Form/Форма/Форма.bsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
| ||
|
||
&НаКлиенте | ||
Процедура Проверить(Команда) | ||
Если ПроверитьЗаполнение() Тогда | ||
ПроверитьНаСервере(); | ||
КонецЕсли; | ||
КонецПроцедуры | ||
|
||
&НаСервере | ||
Процедура ПроверитьНаСервере() | ||
ТекстЗапроса = "[ """+ИсходноеЗначение+""" ]"; | ||
|
||
ХТТПЗапрос = Новый HTTPЗапрос(); | ||
ХТТПЗапрос.АдресРесурса = "/api/v2/clean/address"; | ||
ХТТПЗапрос.Заголовки.Вставить("Content-Type", "application/json"); | ||
ХТТПЗапрос.Заголовки.Вставить("Authorization", "Token " + АпиКлюч); | ||
ХТТПЗапрос.Заголовки.Вставить("X-Secret", СекретныйКлюч); | ||
|
||
ХТТПЗапрос.УстановитьТелоИзСтроки(ТекстЗапроса, КодировкаТекста.UTF8, ИспользованиеByteOrderMark.НеИспользовать); | ||
Соединение = Новый HTTPСоединение("dadata.ru",,,,Новый ИнтернетПрокси,, Новый ЗащищенноеСоединениеOpenSSL); | ||
ОтветHTTP = Соединение.ОтправитьДляОбработки(ХТТПЗапрос); | ||
Ответ = ОтветHTTP.ПолучитьТелоКакСтроку(); | ||
КонецПроцедуры |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Form\Форма\Форма.bsl-->3e57e184-d47e-438c-923c-44a9524769cd.0 (46, 46) | ||
Form\Форма\Форма.bsl-->3e57e184-d47e-438c-923c-44a9524769cd.0 (645, 668) |
Oops, something went wrong.