🔥🔥🔥 fastposter海报生成器,图片生成器,电商海报编辑器,海报设计器,电商图片合成,海报开发。生成朋友圈分享海报并生成图片,二维码海报,图片海报,图片合成,二维码推广海报,支持Java Python PHP Go JS 小程序。https://cloud.fastposter.net/doc/
云服务开发文档 https://cloud.fastposter.net/doc/guide/
进入网址:https://github.com/psoho/fastposter-client-go/releases
go get github.com/psoho/fastposter-client-go
package main
import (
"fmt"
"github.com/psoho/fastposter-client-go/fastposter"
)
func main() {
// 创建海报客户端
client := fastposter.Client("07657854eb3858269c76")
// 设置参数
params := map[string]interface{}{
"name": "测试文本",
}
// 生成海报
poster, err := client.BuildPoster("4b9423a28e594ac5", params, "png")
if err != nil {
fmt.Println("Error:", err)
return
}
//fmt.Println("B64:", poster.B64String())
poster.Save()
}
git tag 1.1.0
git push --tag