| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public function getSessionKey($jsCode) |
||
| 46 | { |
||
| 47 | $params = [ |
||
| 48 | 'appid' => $this->config['app_id'], |
||
| 49 | 'secret' => $this->config['secret'], |
||
| 50 | 'js_code' => $jsCode, |
||
| 51 | 'grant_type' => 'authorization_code', |
||
| 52 | ]; |
||
| 53 | |||
| 54 | return $this->parseJSON('GET', [self::JSCODE_TO_SESSION, $params]); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |