/**
  * Sends a request to the API gateway removing contacts from a group.
  *
  * @param string $groupId    group id to remove contacts from
  * @param array  $contactIds contact ids remove from group
  *
  * @return void
  * @throws ServiceException if request was not successful
  */
 public function removeContactsFromGroup($groupId, $contactIds)
 {
     $groupId = urlencode($groupId);
     $contactIds = urlencode(implode(',', $contactIds));
     $subUrl = "/addressBook/v1/groups/{$groupId}/contacts?contactIds={$contactIds}";
     $endpoint = $this->getFqdn() . $subUrl;
     $req = new RESTFulRequest($endpoint);
     $req->setAuthorizationHeader($this->getToken())->setHeader('Accept', 'application/json')->setHeader('Content-Type', 'application/json');
     $result = $req->sendHttpDelete();
     $code = $result->getResponseCode();
     if ($code != 204) {
         throw new ServiceException($result->getResponseBody(), $code);
     }
 }