This file contains hidden or 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
<?php | |
$ip = 'dev.uc-itcom.ru'; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, 'https://' . $ip . '/app/index.php/gateway/ofdApi/sign'); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, '<xml> | |
<login>semenov_278</login> | |
<password>x8XUo6z0</password> | |
<base64Data>cGFzc3dvcmQ=</base64Data> |
This file contains hidden or 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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: rheola | |
* Date: 08.10.2018 | |
* Time: 12:22 | |
*/ | |
/** | |
* Пример реализации автозагрузика для проекта . |
This file contains hidden or 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
$headers = [ | |
'Authorization: Bearer ' . $this->token, | |
'Content-Type: application/json; charset=utf-8', | |
'Host: dss.itcomgk.ru', | |
'Expect: 100-continue', | |
]; | |
// Массив устанавливаемых HTTP-заголовков | |
curl_setopt($this->ch, CURLOPT_HTTPHEADER, $headers); |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<result> | |
<certificates> | |
<id>289048</id> | |
<platforms>FTS</platforms> | |
<name>1</name> | |
<statusCode>0</statusCode> | |
<documentsRefillReason></documentsRefillReason> | |
<status>Анкета не заполнена</status> | |
<payment>0</payment> |
This file contains hidden or 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
POST https://crm.uc-itcom.ru/app/index.php/gateway/ofdApi/certificates | |
Accept: */* | |
Cache-Control: no-cache | |
<xml> | |
<idOfd>ooosrmsistems</idOfd> | |
<filter>0</filter> | |
<limit>10</limit> | |
<offset>0</offset> | |
</xml> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>iFrame message passing test</title> | |
<meta name="description" content="iFrame message passing test"> | |
<meta name="viewport" content="width=device-width"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
</head> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<result> | |
<certificate> | |
<id>224</id> | |
<price>7100</price> | |
<fields> | |
<field> | |
<id>organizationShortName</id> | |
<name>Организация</name> | |
<required>1</required> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<result> | |
<certificates> | |
<id>211</id> | |
<platforms>EPGU</platforms> | |
<statusCode>10</statusCode> | |
<documentsRefillReason></documentsRefillReason> | |
<status>Анкета заполнена</status> | |
<payment>0</payment> | |
<owner>Соловьев Павел Александрович</owner> |
NewerOlder