List projects in an organization, from oldest to newest.
Parameters
org: Optional[str]
Returns
List projects
import os
from stainless_v0 import Stainless
client = Stainless(
api_key=os.environ.get("STAINLESS_API_KEY"), # This is the default and can be omitted
)
page = client.projects.list()
page = page.data[0]
print(page.config_repo)
{
"data": [
{
"config_repo": "config_repo",
"display_name": "display_name",
"object": "project",
"org": "org",
"slug": "slug",
"targets": [
"node"
]
}
],
"has_more": true,
"next_cursor": "next_cursor"
}
Returns Examples
{
"data": [
{
"config_repo": "config_repo",
"display_name": "display_name",
"object": "project",
"org": "org",
"slug": "slug",
"targets": [
"node"
]
}
],
"has_more": true,
"next_cursor": "next_cursor"
}