Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
68 | public function getSessionKey($jsCode) |
||
69 | { |
||
70 | $params = [ |
||
71 | 'appid' => $this->config['app_id'], |
||
72 | 'secret' => $this->config['secret'], |
||
73 | 'js_code' => $jsCode, |
||
74 | 'grant_type' => 'authorization_code', |
||
75 | ]; |
||
76 | |||
77 | return $this->parseJSON('GET', [self::JSCODE_TO_SESSION, $params]); |
||
78 | } |
||
79 | } |
||
80 |