original_string: public function addInterestGroupings($name, $type, array $groups)
      {
  
          $payload = array(
              'id' => $this->listId,
              'name' => $name,
              'type' => $type,
              'groups' => $groups
          );
  
          $apiCall = 'lists/interest-grouping-add';
          $data = $this->requestMonkey($apiCall, $payload);
          $data = json_decode($data, true);
          if (isset($data['error']))
              throw new MailchimpAPIException($data);
          else
              return isset($data) ? $data : false;
      }
code: public function addInterestGroupings($name, $type, array $groups)
      {
  
          $payload = array(
              'id' => $this->listId,
              'name' => $name,
              'type' => $type,
              'groups' => $groups
          );
  
          $apiCall = 'lists/interest-grouping-add';
          $data = $this->requestMonkey($apiCall, $payload);
          $data = json_decode($data, true);
          if (isset($data['error']))
              throw new MailchimpAPIException($data);
          else
              return isset($data) ? $data : false;
      }
code_tokens: public function addInterestGroupings ( $ name , $ type , array $ groups ) { $ payload = array ( 'id' => $ this -> listId , 'name' => $ name , 'type' => $ type , 'groups' => $ groups ) ; $ apiCall = 'lists/interest-grouping-add' ; $ data = $ this -> requestMonkey ( $ apiCall , $ payload ) ; $ data = json_decode ( $ data , true ) ; if ( isset ( $ data [ 'error' ] ) ) throw new MailchimpAPIException ( $ data ) ; else return isset ( $ data ) ? $ data : false ; }
docstring: Add a new Interest Grouping - if interest groups for the List are not yet enabled, adding the first grouping will automatically turn them on.
  
  @link http://apidocs.mailchimp.com/api/2.0/lists/interest-grouping-add.php
  @param string $name the interest grouping to add - grouping names must be unique
  @param string $type The type of the grouping to add - one of "checkboxes", "hidden", "dropdown", "radio"
  @param array $groups The lists of initial group names to be added - at least 1 is required and the names must be unique within a grouping. If the number takes you over the 60 group limit
  @return array contains id of the new group
  @throws MailchimpAPIException
docstring_tokens: Add a new Interest Grouping - if interest groups for the List are not yet enabled adding the first grouping will automatically turn them on .