##wechat upload image
GET /material
description:
as the API 'uploadimg' will not return the 'media_id', so I used API 'add_material', then we can get both the 'media_id' and the url of the image;
return:
{
"status":1,
"msg":"success",
"data":
{
"media_id":"rbfy2TYcVc5Zx8G-vSsyLN-RPCeBFLE1D8VAeB3tMMI",
"url":"http://mmbiz.qpic.cn/mmbiz_jpg/6McPlqgiaxLP0ibh75lXDfJ3a35Nn1n8icNnQ3YRUFYnH7dDykL6HicdS0eB41uqHXicWjqv4C1AA2B43DzVloL61IA/0?wx_fmt=jpeg"}
}
GET /hyperlink/addHyperlink
return:
Chinese是中国人的意思,Chinese companies是什么意思? Chinese 与 Chinese companies 是什么关系?Chinese companies不能代替Chinese. United States是美国,United States of America也是美国,但United States也不能代替United States of America
run command:
-
phpunit TestMaterial
-
phpunit TestHyperlink