Skip to content

gosms-ge/go2-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go2 SDK

Go Reference PyPI version npm version License: MIT

Official SDKs for the Go2 gRPC API - Smart App Links Platform.

Available SDKs

Language Package Installation
Go pkg.go.dev go get github.com/gosms-ge/go2-sdk/go
Python PyPI pip install go2-sdk
TypeScript npm npm install @go2ge/sdk

Quick Start

Go

client, _ := go2.NewClient(go2.WithAPIKey("go2_xxx"))
defer client.Close()

// Create a smart link
link, _ := client.Links.Create(ctx, &linksv1.CreateLinkRequest{
    Slug:       "myapp",
    IosUrl:     "https://apps.apple.com/app/id123",
    AndroidUrl: "https://play.google.com/store/apps/details?id=com.myapp",
})

// Get analytics
stats, _ := client.Analytics.GetStats(ctx, link.Id, "7d")

Python

with Go2Client(api_key="go2_xxx") as client:
    # Create a smart link
    link = client.links.create(
        slug="myapp",
        ios_url="https://apps.apple.com/app/id123",
        android_url="https://play.google.com/store/apps/details?id=com.myapp",
    )

    # Get analytics
    stats = client.analytics.get_stats(link.id, period="7d")

TypeScript

const client = new Go2Client({ apiKey: 'go2_xxx' });

// Create a smart link
const link = await client.links.create({
    slug: 'myapp',
    iosUrl: 'https://apps.apple.com/app/id123',
    androidUrl: 'https://play.google.com/store/apps/details?id=com.myapp',
});

// Get analytics
const stats = await client.analytics.getStats(link.id, '7d');

client.close();

Available Services

Service Description
Links Create and manage smart app links
Analytics Click analytics, platforms, countries, referrers
Domains Custom domain management
QR Generate customizable QR codes
Integrations Slack, Discord, Telegram, Zapier webhooks
Campaigns SMS/Email marketing with bulk trackable links

gRPC Endpoint

grpc.go2.ge:443

Proto Files

Documentation

Full API documentation: https://app.go2.ge/docs

Development

Prerequisites

  • Go 1.22+
  • Python 3.8+
  • Node.js 18+
  • protoc (Protocol Buffers compiler)

Generating Proto Code

# Generate for all languages
./scripts/generate-all.sh

# Or individually
./scripts/generate-go.sh
./scripts/generate-python.sh
./scripts/generate-typescript.sh

Support

License

MIT - see LICENSE

About

Official Go2 SDKs for Go, Python, and TypeScript

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors