import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.documents.retrieve_metadata(
"documentId",
)
print(response.id){
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>"
}Retrieves metadata for a specific document, including a presigned URL for direct access if applicable.
import os
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key=os.environ.get("SAMPLEHC_API_KEY"), # This is the default and can be omitted
)
response = client.v2.documents.retrieve_metadata(
"documentId",
)
print(response.id){
"id": "<string>",
"fileName": "<string>",
"presignedUrl": "<string>"
}