title: How to retrieve a list address using mailjet API?
body: <p>I'm trying to send some email to everyone on a mailjet list. Here's what I have so far: </p>
  
  <pre><code>public function sendToListByListName($listName, $config, $vars)
  {
      //First we get the list ID from the list name stored in our local settings file.
      if (array_key_exists($listName, $this-&gt;config['lists']) &amp;&amp; $this-&gt;config['lists'][$listName] !== null) {
          $listId = $this-&gt;config['lists'][$listName];
      } else {
          return false;
      }
  
      //TODO: Get the list email address (for example, tb10xdrjm@lists.mailjet.com) via a mailjet API call
      $listAddress = '?? API CALL HERE ??';
  
      //Now we use our sendEmailTo() method to send a group email to the list
      return $this-&gt;sendEmailTo($listAddress, $config, $vars);
  }
  </code></pre>
  
  <p>(The sendEmailTo() method is a local one that some coworkers have already defined. They are currently using it to send emails to individuals.)</p>
  
  <p>I've poked around in the mailjet API documentation, and I'm having trouble finding the way to convert a list ID (like 12345) into its equivalent address (like tb10xdrjm@lists.mailjet.com). I'm sure it's right in front of me. Can anyone help?</p>