Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wiljnichepa authored May 14, 2024
1 parent 3d8b800 commit 4dd939c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions emanifest-py/src/emanifest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,20 @@ def sign_manifest(self, **kwargs) -> RcrainfoResponse:
"""
endpoint = f"{self.base_url}v1/emanifest/manifest/quicker-sign"
return self.__rcra_request("POST", endpoint, **kwargs)

def get_available_manifests(self, mtn: str) -> RcrainfoResponse:
"""
Returns previous and future signature-related information about manifest and respective sites
Args:
mtn (str): Manifest tracking number
Returns:
dict: object containing manifest signature details
"""
endpoint = f"{self.base_url}v1/emanifest/manifest/available-to-sign/{mtn}"
return self.__rcra_request("GET", endpoint)

def save_manifest(
self, manifest_json: dict, zip_file: bytes = None
) -> RcrainfoResponse:
Expand Down

0 comments on commit 4dd939c

Please sign in to comment.