Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-01-23 17:54:02 +00:00
parent 81eb8a213a
commit f142eddbb9
22 changed files with 1178 additions and 1178 deletions

View File

@@ -25,9 +25,9 @@ import(
func GenerateAvatarAndReturnBase64stringOfTheAvatar() {
avatarService := avatar.NewAvatarService(os.Getenv("M3O_API_TOKEN"))
rsp, err := avatarService.Generate(&avatar.GenerateRequest{
Format: "png",
Format: "jpeg",
Gender: "female",
Upload: true,
Upload: false,
Username: "",
})
@@ -56,9 +56,9 @@ import(
func GenerateAnAvatarAndUploadTheAvatarToMicrosCdn() {
avatarService := avatar.NewAvatarService(os.Getenv("M3O_API_TOKEN"))
rsp, err := avatarService.Generate(&avatar.GenerateRequest{
Format: "jpeg",
Format: "png",
Gender: "female",
Upload: false,
Upload: true,
Username: "",
})

View File

@@ -11,9 +11,9 @@ import (
func main() {
avatarService := avatar.NewAvatarService(os.Getenv("M3O_API_TOKEN"))
rsp, err := avatarService.Generate(&avatar.GenerateRequest{
Format: "jpeg",
Format: "png",
Gender: "female",
Upload: false,
Upload: true,
Username: "",
})
fmt.Println(rsp, err)

View File

@@ -11,9 +11,9 @@ import (
func main() {
avatarService := avatar.NewAvatarService(os.Getenv("M3O_API_TOKEN"))
rsp, err := avatarService.Generate(&avatar.GenerateRequest{
Format: "png",
Format: "jpeg",
Gender: "female",
Upload: true,
Upload: false,
Username: "",
})
fmt.Println(rsp, err)