Get dataset by ID
import os
from plaza import Plaza
client = Plaza(
api_key=os.environ.get("PLAZA_API_KEY"), # This is the default and can be omitted
)
dataset = client.datasets.retrieve(
"id",
)
print(dataset.id){
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"inserted_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"attribution": "attribution",
"description": "description",
"license": "license",
"source_url": "source_url"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"inserted_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"slug": "slug",
"updated_at": "2019-12-27T18:11:19.117Z",
"attribution": "attribution",
"description": "description",
"license": "license",
"source_url": "source_url"
}