code: def _add_photo_to_album(
              self,
              photoId,
              album):
          
          self.log.info('starting the ``_add_photo_to_album`` method')
  
          try:
              response = requests.get(
                  url="https://api.flickr.com/services/rest/",
                  params={
                      "method": "flickr.photosets.getList",
                      "format": "json",
                      "nojsoncallback": "1",
                  },
                  auth=self.auth,
              )
          except requests.exceptions.RequestException:
              print('HTTP Request failed')
  
          albumId = False
          for s in response.json()["photosets"]["photoset"]:
              if s["title"]["_content"].lower().strip() == album.strip():
                  albumId = s["id"]
  
          if albumId:
              try:
                  response = requests.post(
                      url="https://api.flickr.com/services/rest/",
                      params={
                          "method": "flickr.photosets.addPhoto",
                          "photoset_id": albumId,
                          "photo_id": photoId,
                          "format": "json",
                          "nojsoncallback": "1",
                      },
                      auth=self.auth,
                  )
              except requests.exceptions.RequestException:
                  print('HTTP Request failed')
  
          else:
              try:
                  response = requests.post(
                      url="https://api.flickr.com/services/rest/",
                      params={
                          "method": "flickr.photosets.create",
                          "title": album,
                          "primary_photo_id": photoId,
                          "format": "json",
                          "nojsoncallback": "1",
                      },
                      auth=self.auth,
                  )
              except requests.exceptions.RequestException:
                  print('HTTP Request failed')
  
          self.log.info('completed the ``_add_photo_to_album`` method')
          return None
docs: *add a photo with the given photo ID to a named album*
  
          **Key Arguments:**
              - ``photoId`` -- the ID of the photo to add to the album
              - ``album`` -- the name of the album to add the photo to
  
          **Return:**
              - None
  
          **Usage:**
              ..  todo::
  
                  - add usage info
                  - create a sublime snippet for usage
                  - update package tutorial if needed
  
              .. code-block:: python 
  
                  usage code