Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
Definition
accesscode.php:9
Bitrix\Sale\Exchange\Integration\Entity\AccessCode\create
create(array $fields)
Definition
accesscode.php:17
Bitrix\Sale\Exchange\Integration\Entity\AccessCode\__construct
__construct(OAuth\Client $oauthClient)
Definition
accesscode.php:12
Bitrix\Sale\Exchange\Integration\Entity\AccessCode\$oauthClient
$oauthClient
Definition
accesscode.php:10
Bitrix\Sale\Exchange\Integration\OAuth\Client
Definition
client.php:9
Bitrix\Sale\Exchange\Integration\Entity
Definition
accesscode.php:4
Bitrix\Sale\Exchange\Integration\OAuth
Definition
bitrix24.php:4
modules
sale
lib
exchange
integration
entity
accesscode.php
Создано системой
1.10.0