DocumentationGo SDK
Go SDK
Go SDK (coming soon).
Coming soon
The Go SDK is in progress. Use the REST API for now.
REST example (net/http)
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
payload := []byte(`{"url":"https://example.com","format":"png","full_page":true}`)
req, _ := http.NewRequest("POST", "https://api.ssapi.com/v1/capture", bytes.NewBuffer(payload))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Access-Key", "your-key")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
Updated 1 day ago