Skip to main content
GET
/
tags
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.Tags.List(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.CustomTags != nil {
        // handle response
    }
}
{
  "data": [
    {
      "id": "tag_rrBpzxAAp3UJzrEb6z4xhW55Lx9p",
      "type": "tags",
      "attributes": {
        "name": "Saruman",
        "slug": "saruman",
        "description": "Odit suscipit quidem sed.",
        "color": "#c0c077",
        "team": {
          "id": "team_YGebYxWLAPtoWp5x4LoEHGaePgYe",
          "name": "569 Team",
          "slug": "569-team",
          "description": "569 Team",
          "address": "441 Donald Oval, New Hank, WA 86449-7808",
          "status": "verified",
          "currency": {
            "id": "cur_AW6Q2D9lqKLpr",
            "code": "BRL",
            "name": "Brazilian Real",
            "currency_id": null
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Response

200 - application/vnd.api+json

Success

data
object[]
meta
object