protected function getClient($redirecturl = '') {
		// keep only one instance during a session
		if (is_object($this->linkedin)) {
			return $this->linkedin;
		}
		
		if ($redirecturl == '') {
			$redirecturl = $this->redirecturl;
		} else {
			$this->redirecturl = $redirecturl;
		}
		$this->logQ('redirect '.$redirecturl,'linkedin');
		
		$API_CONFIG = array(
			'api_key' => $this->options['api_key'],
			'api_secret' => $this->options['api_secret'],
			'callback_url' => $redirecturl
			);
			
		$this->linkedin = $linkedin = new \LinkedIn\LinkedIn($API_CONFIG);
		
		return $this->linkedin;
	}
protected function getClient($redirecturl = '') {
		// keep only one instance during a session
		if (is_object($this->linkedin)) {
			return $this->linkedin;
		}
		
		if ($redirecturl == '') {
			$redirecturl = $this->redirecturl;
		} else {
			$this->redirecturl = $redirecturl;
		}
		$this->logQ('redirect '.$redirecturl,'linkedin');
		
		$API_CONFIG = array(
			'api_key' => $this->options['api_key'],
			'api_secret' => $this->options['api_secret'],
			'callback_url' => $redirecturl
			);
			
		$this->linkedin = $linkedin = new \LinkedIn\LinkedIn($API_CONFIG);
		
		return $this->linkedin;
	}
protected function getClient ( $ redirecturl = '' ) { // keep only one instance during a session if ( is_object ( $ this -> linkedin ) ) { return $ this -> linkedin ; } if ( $ redirecturl == '' ) { $ redirecturl = $ this -> redirecturl ; } else { $ this -> redirecturl = $ redirecturl ; } $ this -> logQ ( 'redirect ' . $ redirecturl , 'linkedin' ) ; $ API_CONFIG = array ( 'api_key' => $ this -> options [ 'api_key' ] , 'api_secret' => $ this -> options [ 'api_secret' ] , 'callback_url' => $ redirecturl ) ; $ this -> linkedin = $ linkedin = new \ LinkedIn \ LinkedIn ( $ API_CONFIG ) ; return $ this -> linkedin ; }
Returns LinkedIn API object inited with API settings

@return LinkedIn\LinkedIn
Returns LinkedIn API object inited with API settings