import os
from miru_platform_sdk import Miru
client = Miru(
api_key=os.environ.get("MIRU_API_KEY"), # This is the default and can be omitted
)
principal = client.principal.self()
print(principal.id)
{
"object": "principal",
"id": "api_key_123",
"name": "My CI/CD Key"
}
import os
from miru_platform_sdk import Miru
client = Miru(
api_key=os.environ.get("MIRU_API_KEY"), # This is the default and can be omitted
)
principal = client.principal.self()
print(principal.id)
{
"object": "principal",
"id": "api_key_123",
"name": "My CI/CD Key"
}
Assistant
Responses are generated using AI and may contain mistakes.