Skip to content

Instantly share code, notes, and snippets.

@theodesp theodesp/project-list.go
Last active Feb 7, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.