/** * * Execute the Request * * @return object Response Data * @throws InstagramException */ public function execute() { $response = parent::execute(); $this->response = $response; if ($this->throwExceptionIfResponseNotOk() && !$response->isOK()) { throw new InstagramException(sprintf("Instagram Request Failed! [%s] [%s]", $this->getEndpoint(), $response->getCode())); } $this->instagram->setCookies(array_merge($this->instagram->getCookies(), $response->getCookies())); return $this->parseResponse($response); }