Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
accesscode.php
1<?php
2
3
5
7
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}