protected function create($actionName, $actionInfo, $temporary = true, $expireSeconds = null)
    {
        $expireSeconds !== null || $expireSeconds = 7 * self::DAY;

        $params = [
            'action_name' => $actionName,
            'action_info' => ['scene' => $actionInfo],
        ];

        if ($temporary) {
            $params['expire_seconds'] = min($expireSeconds, 30 * self::DAY);
        }

        return $this->json(self::API_CREATE, $params);
    }
protected function create($actionName, $actionInfo, $temporary = true, $expireSeconds = null)
    {
        $expireSeconds !== null || $expireSeconds = 7 * self::DAY;

        $params = [
            'action_name' => $actionName,
            'action_info' => ['scene' => $actionInfo],
        ];

        if ($temporary) {
            $params['expire_seconds'] = min($expireSeconds, 30 * self::DAY);
        }

        return $this->json(self::API_CREATE, $params);
    }
protected function create ( $ actionName , $ actionInfo , $ temporary = true , $ expireSeconds = null ) { $ expireSeconds !== null || $ expireSeconds = 7 * self :: DAY ; $ params = [ 'action_name' => $ actionName , 'action_info' => [ 'scene' => $ actionInfo ] , ] ; if ( $ temporary ) { $ params [ 'expire_seconds' ] = min ( $ expireSeconds , 30 * self :: DAY ) ; } return $ this -> json ( self :: API_CREATE , $ params ) ; }
Create a QRCode.

@param string $actionName
@param array $actionInfo
@param bool $temporary
@param int $expireSeconds
@return array
@throws \yii\httpclient\Exception
Create a QRCode .