Docs/Documentation/Quickstart

Go

Use the Repull API from Go with standard net/http.

Installation

go get github.com/repull-dev/go-sdk

Complete Example

package main

import (
    "fmt"
    "io"
    "net/http"
    "os"
)

func main() {
    client := &http.Client{}
    req, _ := http.NewRequest("GET", "https://api.repull.dev/v1/properties", nil)
    req.Header.Set("Authorization", "Bearer "+os.Getenv("REPULL_API_KEY"))

    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    body, _ := io.ReadAll(resp.Body)
    fmt.Println(string(body))
}

Environment Variables

REPULL_API_KEY=sk_test_YOUR_KEY
REPULL_WORKSPACE_ID=YOUR_WORKSPACE_ID

Start with sk_test_ keys for sandbox data. Switch to sk_live_ when ready for production.

AI