123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using LYFZ.Weixin.SDK.Helpers;
- using Codeplex.Data;
- using System.IO;
- namespace LYFZ.Weixin.SDK.Merchant
- {
-
-
-
- public class CommonAPI
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
- public static dynamic UploadImg(string access_token, string fileName,Stream inputStream)
- {
- var url = string.Format("https://api.weixin.qq.com/merchant/common/upload_img?access_token={0}&filename={1}", access_token, fileName);
- var returnText = Util.HttpRequestPost(url, "filename", fileName, inputStream);
- return DynamicJson.Parse(returnText);
- }
- }
- }
|