1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
accesscode.php
См. документацию.
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\Entity
;
5
6
use
Bitrix\Sale\Exchange\Integration\OAuth
;
7
8
class
AccessCode
9
{
10
protected
$oauthClient
;
11
12
public
function
__construct
(
OAuth
\
Client
$oauthClient
)
13
{
14
$this->oauthClient =
$oauthClient
;
15
}
16
17
public
function
create
(
array
$fields
)
18
{
19
return
$this->oauthClient->getAccessToken(
20
"refresh_token"
,
21
[
"refresh_token"
=>
$fields
[
'refreshToken'
]]
22
);
23
}
24
}
Bitrix\Sale\Exchange\Integration\Entity\AccessCode
Определения
accesscode.php:9
Bitrix\Sale\Exchange\Integration\Entity\AccessCode\create
create(array $fields)
Определения
accesscode.php:17
Bitrix\Sale\Exchange\Integration\Entity\AccessCode\__construct
__construct(OAuth\Client $oauthClient)
Определения
accesscode.php:12
Bitrix\Sale\Exchange\Integration\Entity\AccessCode\$oauthClient
$oauthClient
Определения
accesscode.php:10
Bitrix\Sale\Exchange\Integration\OAuth\Client
Определения
client.php:9
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Sale\Exchange\Integration\Entity
Определения
accesscode.php:4
Bitrix\Sale\Exchange\Integration\OAuth
Определения
bitrix24.php:4
$fields
$fields
Определения
yandex_run.php:501
bitrix
modules
sale
lib
exchange
integration
entity
accesscode.php
Создано системой
1.14.0