Instagram\API\Request\ChangeProfilePictureAccountRequest::execute PHP Метод

execute() публичный Метод

public execute ( ) : PhotoUploadResponse
Результат Instagram\API\Response\PhotoUploadResponse
    public function execute()
    {
        return parent::execute();
    }

Usage Example

Пример #1
0
 /**
  *
  * Change Profile Picture
  *
  * @param string $path File path of Profile Picture to Upload
  * @return API\Response\ChangeProfilePictureAccountResponse
  * @throws Exception
  */
 public function changeProfilePicture($path)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call changeProfilePicture().");
     }
     $request = new ChangeProfilePictureAccountRequest($this, $path);
     $response = $request->execute();
     if (!$response->isOk()) {
         throw new InstagramException(sprintf("Failed to changeProfilePicture: [%s] %s", $response->getStatus(), $response->getMessage()));
     }
     return $response;
 }
All Usage Examples Of Instagram\API\Request\ChangeProfilePictureAccountRequest::execute