Skip to content

Releases: psoho/fastposter-client-go

V1.1.0

06 Sep 05:07
Compare
Choose a tag to compare

fastposter-client-go

🔥🔥🔥 fastposter海报生成器,图片生成器,电商海报编辑器,海报设计器,电商图片合成,海报开发。生成朋友圈分享海报并生成图片,二维码海报,图片海报,图片合成,二维码推广海报,支持Java Python PHP Go JS 小程序。https://cloud.fastposter.net/doc/

fastposter 让海报开发更简单

云服务开发文档 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()
}

效果

v1.0.0

03 Jul 17:30
Compare
Choose a tag to compare

fastposter-client-go

🔥🔥🔥 fastposter海报生成器,图片生成器,电商海报编辑器,海报设计器,电商图片合成,海报开发。生成朋友圈分享海报并生成图片,二维码海报,图片海报,图片合成,二维码推广海报,支持Java Python PHP Go JS 小程序。https://cloud.fastposter.net/doc/

fastposter 让海报开发更简单

云服务开发文档 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("Error:", poster.B64String())
	err = poster.SaveTo("demo.png")
	if err != nil {
		fmt.Println("Error:", err)
		return
	}
}

效果