Skip to content

Commit d21ad0b

Browse files
author
zhao
authored
Update JsSdkApi.php
1 parent 3123a56 commit d21ad0b

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/JsSdk/JsSdkApi.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,15 @@ public function getJsApiTicket($accessToken)
2727
$response = $this->client->request('get', $url, ['verify' => $this->sslVerify,]);
2828
return $this->parseApiResult($response);
2929
}
30-
31-
}
30+
31+
/**
32+
* @inheritdoc
33+
*/
34+
public function getJsApiTicketAgentConfig($accessToken)
35+
{
36+
$url = sprintf(self::URL_JS_API_TICKET_AGENT_CONFIG, $accessToken);
37+
$response = $this->client->request('get', $url, ['verify' => $this->sslVerify,]);
38+
return $this->parseApiResult($response);
39+
}
40+
41+
}

0 commit comments

Comments
 (0)