public function getAccessToken($code = '')
	{
		$dta = array('client_id' => $this->_API['API_KEY'], 'client_secret' => $this->_API['API_SECRET'], 'code' => $code);
		$data = $this->call(['METHOD' => 'POST', 'URL' => 'https://' . $this->_API['SHOP_DOMAIN'] . '/admin/oauth/access_token', 'DATA' => $dta], FALSE);

		return $data->access_token;
	}
public function getAccessToken($code = '')
	{
		$dta = array('client_id' => $this->_API['API_KEY'], 'client_secret' => $this->_API['API_SECRET'], 'code' => $code);
		$data = $this->call(['METHOD' => 'POST', 'URL' => 'https://' . $this->_API['SHOP_DOMAIN'] . '/admin/oauth/access_token', 'DATA' => $dta], FALSE);

		return $data->access_token;
	}
public function getAccessToken ( $ code = '' ) { $ dta = array ( 'client_id' => $ this -> _API [ 'API_KEY' ] , 'client_secret' => $ this -> _API [ 'API_SECRET' ] , 'code' => $ code ) ; $ data = $ this -> call ( [ 'METHOD' => 'POST' , 'URL' => 'https://' . $ this -> _API [ 'SHOP_DOMAIN' ] . '/admin/oauth/access_token' , 'DATA' => $ dta ] , FALSE ) ; return $ data -> access_token ; }
Calls API and returns OAuth Access Token, which will be needed for all future requests
@param string $code
@return mixed
@throws \Exception
Calls API and returns OAuth Access Token which will be needed for all future requests