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

# SDKs Overview

> Code examples and libraries for integrating with the LuxCore API

# SDKs & Code Examples

While we don't yet offer official SDKs, we provide comprehensive code examples in popular programming languages to help you integrate with the LuxCore API.

## Available Examples

<CardGroup cols={2}>
  <Card title="Python" icon="python" href="/sdks/python">
    Examples using the `requests` library
  </Card>

  <Card title="Node.js" icon="node-js" href="/sdks/nodejs">
    Examples using `axios` and native `fetch`
  </Card>

  <Card title="PHP" icon="php" href="/sdks/php">
    Examples using cURL and Guzzle
  </Card>

  <Card title="Go" icon="golang" href="/sdks/go">
    Examples using the standard library
  </Card>
</CardGroup>

## Quick Start

All examples follow the same pattern:

1. **Set your API key** in an environment variable
2. **Make HTTP requests** to the API endpoints
3. **Handle responses** and errors appropriately

### Environment Variables

Store your API key securely:

<CodeGroup>
  ```bash Linux/macOS theme={null}
  export LUXCORE_API_KEY="qp_test_sk_your_api_key"
  ```

  ```powershell Windows PowerShell theme={null}
  $env:LUXCORE_API_KEY = "qp_test_sk_your_api_key"
  ```

  ```env .env file theme={null}
  LUXCORE_API_KEY=qp_test_sk_your_api_key
  ```
</CodeGroup>

## Common Operations

Each SDK example covers these essential operations:

| Operation      | Description                           |
| -------------- | ------------------------------------- |
| Create Payment | Create deposit or withdrawal payments |
| Get Payment    | Retrieve payment status by ID         |
| List Payments  | List payments with filters            |
| Cancel Payment | Cancel a pending payment              |
| Create Webhook | Set up webhook endpoints              |
| Verify Webhook | Verify webhook signatures             |
| Get Balance    | Check merchant balance                |

## API Wrapper Example

Here's a simple wrapper class pattern used across our examples:

```python Python Example theme={null}
class LuxCoreClient:
    BASE_URL = "https://api.lux-core.io/api/v1"
    
    def __init__(self, api_key):
        self.api_key = api_key
        self.headers = {
            "X-API-Key": api_key,
            "Content-Type": "application/json"
        }
    
    def create_payment(self, **kwargs):
        return self._request("POST", "/payments", kwargs)
    
    def get_payment(self, payment_id):
        return self._request("GET", f"/payments/{payment_id}")
    
    def _request(self, method, path, data=None):
        # Implementation details...
        pass
```

## Community SDKs

If you've built an SDK for LuxCore, we'd love to feature it here! Contact us at [developers@lux-core.io](mailto:developers@lux-core.io).

## Need Help?

<CardGroup cols={2}>
  <Card title="API Reference" icon="code" href="/api-reference/overview">
    Complete API documentation
  </Card>

  <Card title="Support" icon="envelope" href="mailto:developers@lux-core.io">
    Contact developer support
  </Card>
</CardGroup>
