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"}
]

相关文档

  • 颜色列表 创建卡券的时候需要用到颜色列表