Instagram\API\Request\CurrentUserAccountRequest::execute PHP Method

execute() public method

public execute ( ) : CurrentUserAccountResponse
return Instagram\API\Response\CurrentUserAccountResponse
    public function execute()
    {
        return parent::execute();
    }

Usage Example

コード例 #1
0
 /**
  *
  * Get Current User Account
  *
  * @return API\Response\CurrentUserAccountResponse
  * @throws Exception
  */
 public function getCurrentUserAccount()
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call getCurrentUserAccount().");
     }
     $request = new CurrentUserAccountRequest($this);
     $response = $request->execute();
     if (!$response->isOk()) {
         throw new InstagramException(sprintf("Failed to getCurrentUserAccount: [%s] %s", $response->getStatus(), $response->getMessage()));
     }
     return $response;
 }
All Usage Examples Of Instagram\API\Request\CurrentUserAccountRequest::execute