(self, from_date, to_date)
return self.request.post(f'https://{self.BASE_URL}/hmsweb/users/library', {'dateFrom':from_date, 'dateTo':to_date})
This call returns the following:
        presignedContentUrl is a link to the actual video in Amazon AWS.
        presignedThumbnailUrl is a link to the thumbnail .jpg of the actual video in Amazon AWS.

        [
          {
            "mediaDurationSecond": 30,
            "contentType": "video/mp4",
            "name": "XXXXXXXXXXXXX",
            "presignedContentUrl": "https://arlos3-prod-z2.s3.amazonaws.com/XXXXXXX_XXXX_XXXX_XXXX_XXXXXXXXXXXXX/XXX-XXXXXXX/XXXXXXXXXXXXX/recordings/XXXXXXXXXXXXX.mp4?AWSAccessKeyId=XXXXXXXXXXXXXXXXXXXX&Expires=1472968703&Signature=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "lastModified": 1472881430181,
            "localCreatedDate": XXXXXXXXXXXXX,
            "presignedThumbnailUrl": "https://arlos3-prod-z2.s3.amazonaws.com/XXXXXXX_XXXX_XXXX_XXXX_XXXXXXXXXXXXX/XXX-XXXXXXX/XXXXXXXXXXXXX/recordings/XXXXXXXXXXXXX_thumb.jpg?AWSAccessKeyId=XXXXXXXXXXXXXXXXXXXX&Expires=1472968703&Signature=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "reason": "motionRecord",
            "deviceId": "XXXXXXXXXXXXX",
            "createdBy": "XXXXXXXXXXXXX",
            "createdDate": "20160903",
            "timeZone": "America/Chicago",
            "ownerId": "XXX-XXXXXXX",
            "utcCreatedDate": XXXXXXXXXXXXX,
            "currentState": "new",
            "mediaDuration": "00:00:30"
          }
        ]
This call returns the following:
        presignedContentUrl is a link to the actual video in Amazon AWS.
        presignedThumbnailUrl is a link to the thumbnail .jpg of the actual video in Amazon AWS.
This call returns the following : presignedContentUrl is a link to the actual video in Amazon AWS . presignedThumbnailUrl is a link to the thumbnail . jpg of the actual video in Amazon AWS .
def GetLibrary(self, from_date, to_date):
        """
        This call returns the following:
        presignedContentUrl is a link to the actual video in Amazon AWS.
        presignedThumbnailUrl is a link to the thumbnail .jpg of the actual video in Amazon AWS.

        [
          {
            "mediaDurationSecond": 30,
            "contentType": "video/mp4",
            "name": "XXXXXXXXXXXXX",
            "presignedContentUrl": "https://arlos3-prod-z2.s3.amazonaws.com/XXXXXXX_XXXX_XXXX_XXXX_XXXXXXXXXXXXX/XXX-XXXXXXX/XXXXXXXXXXXXX/recordings/XXXXXXXXXXXXX.mp4?AWSAccessKeyId=XXXXXXXXXXXXXXXXXXXX&Expires=1472968703&Signature=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "lastModified": 1472881430181,
            "localCreatedDate": XXXXXXXXXXXXX,
            "presignedThumbnailUrl": "https://arlos3-prod-z2.s3.amazonaws.com/XXXXXXX_XXXX_XXXX_XXXX_XXXXXXXXXXXXX/XXX-XXXXXXX/XXXXXXXXXXXXX/recordings/XXXXXXXXXXXXX_thumb.jpg?AWSAccessKeyId=XXXXXXXXXXXXXXXXXXXX&Expires=1472968703&Signature=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            "reason": "motionRecord",
            "deviceId": "XXXXXXXXXXXXX",
            "createdBy": "XXXXXXXXXXXXX",
            "createdDate": "20160903",
            "timeZone": "America/Chicago",
            "ownerId": "XXX-XXXXXXX",
            "utcCreatedDate": XXXXXXXXXXXXX,
            "currentState": "new",
            "mediaDuration": "00:00:30"
          }
        ]
        """
        return self.request.post(f'https://{self.BASE_URL}/hmsweb/users/library', {'dateFrom':from_date, 'dateTo':to_date})
def GetLibrary ( self , from_date , to_date ) : return self . request . post ( f'https://{self.BASE_URL}/hmsweb/users/library' , { 'dateFrom' : from_date , 'dateTo' : to_date } )