title: Getting Subscribers using an API call to Campaign Monitor with Create Send & Python
body: <p>Aloha Friends,</p>
  
  <p>Apologies for the noobish question, I'm still in my infancy with Python &amp; Programming and I'm trying to find a better way to do a very very manual task. </p>
  
  <p>I would like to get all subscribers from Campaign Monitor using it's API </p>
  
  <p>I've read and re-read the API documentation and arrived at the conclusion that I need to use this snippet of code:</p>
  
  <pre><code> from __future__ import absolute_import
  
  import json
  
  from createsend.createsend import CreateSendBase, BadRequest
  from createsend.utils import json_to_py, validate_consent_to_track
  
  
  class Subscriber(CreateSendBase):
      """Represents a subscriber and associated functionality."""
  
      def __init__(self, auth=None, list_id=None, email_address=None):
          self.list_id = list_id
          self.email_address = email_address
          super(Subscriber, self).__init__(auth)
  
      def get(self, list_id=None, email_address=None, include_tracking_preference=False):
          """Gets a subscriber by list ID and email address."""
          params = {
              "email": email_address or self.email_address,
              "includetrackingpreference": include_tracking_preference,
          }
          response = self._get("/subscribers/%s.json" %
                               (list_id or self.list_id), params=params)
          return json_to_py(response)
  </code></pre>
  
  <p>I'm a little lost with the code, I'm unsure if I need to apend the create send class above this with the API key, and would the above just give me a full Json list of my subscribers..? </p>
  
  <p>I'm taking a basic API course on Udemy at the moment so I know how to use postman and run basic api calls using Flask, but I've not seen or used Createsend. </p>
  
  <p>Github for the Code <a href="https://github.com/campaignmonitor/createsend-python" rel="nofollow noreferrer">here</a></p>
  
  <p>Documentation <a href="https://www.campaignmonitor.com/api/subscribers/#getting-subscribers-details" rel="nofollow noreferrer">here</a></p>
  
  <p>For anyone reading this I really appreciate your time, (whether you reply or not)! </p>
  
  <p>Yours Sincerely,
  Datanovice. </p>