INNER CODE UNIT · Python

fetch_railway_projects

phasehq/console · backend/api/utils/syncing/railway/main.py:34

def fetch_railway_projects(credential_id):
    credentials = get_credentials(credential_id)
    api_token = credentials.get("api_token")

    headers = {
        "Authorization": f"Bearer {api_token}",
        "Content-Type": "application/json",
    }

    query = """
    query {
        projects {
            edges {
                node {
                    id
                    name
                    environments {
                      edges {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…