> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployments

> Dieser Leitfaden bietet Beispiele dafür, wie du Anwendungs-Deployments mit diesem SDK integrierst und verwaltest. Du lernst, wie du GitHub-Integrationen erstellst, Details zur aktuellen Integration abrufst und die neuesten Deployments sowohl über das Client- als auch über das Application-Objekt anzeigst.

## Integration erstellen

<Tabs>
  <Tab title="Über den Client">
    ```python theme={null}
    import squarecloud as square

    client = square.Client(api_key='API KEY')


    async def example():
        webhook_url = await client.github_integration(
            'application_id', access_token='access_token'
        )
        print(
            webhook_url
        )
    ```
  </Tab>

  <Tab title="Über die Application">
    ```python theme={null}
    import squarecloud as square

    client = square.Client(api_key='API KEY')


    async def example():
        app = await client.app('application_id')
        webhook_url = await app.github_integration(access_token='access_token')
        print(
            webhook_url
        )
    ```
  </Tab>
</Tabs>

## Aktuelle Integration abrufen

<Tabs>
  <Tab title="Über den Client">
    ```python theme={null}
    import squarecloud as square

    client = square.Client(api_key='API KEY')


    async def example():
        webhook_url = await client.current_app_integration(
            'application_id',
        )
        print(webhook_url)
    ```
  </Tab>

  <Tab title="Über die Application">
    ```python theme={null}
    import squarecloud as square

    client = square.Client(api_key='API KEY')


    async def example():
        app = await client.app('application_id')
        webhook_url = await app.current_integration()
        print(
            webhook_url
        )
    ```
  </Tab>
</Tabs>

## Letzte Deploys

<Tabs>
  <Tab title="Über den Client">
    ```python theme={null}
    import squarecloud as square

    client = square.Client(api_key='API KEY')


    async def example():
        deploys = await client.last_deploys('application_id')
        print(deploys)  # [[DeployData(...), DeployData(...), DeployData(...)]]
    ```
  </Tab>

  <Tab title="Über die Application">
    ```python theme={null}
    import squarecloud as square

    client = square.Client(api_key='API KEY')


    async def example():
        app = await client.app('application_id')
        deploys = await app.last_deploys()
        print(deploys)  # [[DeployData(...), DeployData(...), DeployData(...)]]
    ```
  </Tab>
</Tabs>
