コード例 #1
0
 public function runRelease()
 {
     try {
         $buddy = new Buddy(['accessToken' => 'yourAccessToken']);
         $release = new Release();
         $release->setRevision('new revision on server');
         $release->setComment('deploying new version of webpage');
         $resp = $buddy->getApiReleases()->runRelease($release, 'domain', 'projectName', 1);
         var_dump($resp);
         exit;
     } catch (BuddyResponseException $e) {
         echo $e->getMessage();
         exit;
     } catch (BuddySDKException $e) {
         echo $e->getMessage();
         exit;
     }
 }