Skip to content

Instantly share code, notes, and snippets.

@theodesp
Last active February 7, 2019 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/280634b946294ee3ce3f3423303e8738 to your computer and use it in GitHub Desktop.
Save theodesp/280634b946294ee3ce3f3423303e8738 to your computer and use it in GitHub Desktop.
package main
import (
"github.com/phrase/phraseapp-go/phraseapp"
"os"
"fmt"
"log"
)
func main() {
credentials := phraseapp.Credentials{
Host: "https://api.phraseapp.com",
Token: os.Getenv("PHRASE_APP_TOKEN"),
}
client := phraseapp.Client{
Credentials: credentials,
}
projects, err := client.ProjectsList(1, 10)
if err != nil {
log.Fatal(err)
}
fmt.Println("PROJECT LIST")
fmt.Println("____________")
for _, project := range projects {
fmt.Println(project.Name)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment