Last active
February 7, 2019 20:18
-
-
Save theodesp/280634b946294ee3ce3f3423303e8738 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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