INNER CODE UNIT · Python

get_headers

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

def get_headers(api_token):
    return {"Authorization": f"Bearer {api_token}", "Content-Type": "application/json"}


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 {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…