Go SDK
Install and use the RankVectors Go SDK
Installation
go get github.com/rankvectors/rankvectors-go-sdk
Quick Start
package main
import (
"context"
"fmt"
"github.com/rankvectors/rankvectors-go-sdk"
)
func main() {
client := rankvectors.NewAPIClient(rankvectors.NewConfiguration())
client.APIKey = "YOUR_API_KEY"
// Create a project
project, _, err := client.ProjectsAPI.CreateProject(context.Background()).
CreateProjectRequest(rankvectors.CreateProjectRequest{
Name: "My Website",
Domain: "https://example.com",
PreferredSdk: "go",
}).
Execute()
if err != nil {
panic(err)
}
fmt.Printf("Project created: %s\n", project.Id)
}
More Examples
See the API Reference for complete API documentation.