mirror of
https://github.com/w7corp/easywechat.git
synced 2025-01-22 03:22:10 +00:00
Page:
颜色列表
0
颜色列表
overtrue edited this page 2015-04-26 05:46:16 +08:00
创建卡券的时候需要用到颜色列表
本 SDK 中上传素材通过 Overtrue\Wechat\Color
提供素材管理服务。
获取实例
<?php
use Overtrue\Wechat\Color;
$appId = 'wx3cf0f39249eb0e60';
$secret = 'f1c242f4f28f735d4687abb469072a29';
$color = new Color($appId, $secret);
API
array $color->lists()
获取所有支持的颜色列表(内部有缓存一天)
example:
[
{"name":"Color010","value":"#55bd47"},
{"name":"Color020","value":"#10ad61"},
{"name":"Color030","value":"#35a4de"},
{"name":"Color040","value":"#3d78da"},
{"name":"Color050","value":"#9058cb"},
{"name":"Color060","value":"#de9c33"},
{"name":"Color070","value":"#ebac16"},
{"name":"Color080","value":"#f9861f"},
{"name":"Color081","value":"#f08500"},
{"name":"Color090","value":"#e75735"},
{"name":"Color100","value":"#d54036"},
{"name":"Color101","value":"#cf3e36"}
]
相关文档
- 颜色列表 创建卡券的时候需要用到颜色列表
中文版 English
目录
English 中文版
Table of Contents
Laravel 5 版: overtrue/laravel-wechat
可能由于微信的接口调整导致某些接口不能正常使用,请及时给我反馈,谢谢!https://github.com/overtrue/wechat/issues