Метод | Описание | |
---|---|---|
AddMaterial ( string accessToken, UploadMediaFileType type, int agentId, string media, int timeOut = Config.TIME_OUT ) : |
上传其他类型永久素材
|
|
AddMaterialAsync ( string accessToken, UploadMediaFileType type, int agentId, string media, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】上传其他类型永久素材
|
|
AddMpNews ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : |
上传永久图文素材
|
|
AddMpNewsAsync ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】上传永久图文素材
|
|
BatchGetMaterial ( string accessToken, UploadMediaFileType type, int agentId, int offset, int count, int timeOut = Config.TIME_OUT ) : |
获取素材列表
|
|
BatchGetMaterialAsync ( string accessToken, UploadMediaFileType type, int agentId, int offset, int count, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】获取素材列表
|
|
DeleteForeverMaterial ( string accessToken, int agentId, string mediaId ) : |
删除永久素材
|
|
DeleteForeverMaterialAsync ( string accessToken, int agentId, string mediaId ) : Task |
【异步方法】删除永久素材
|
|
Get ( string accessToken, string mediaId, string dir ) : string |
获取临时媒体文件并保存到指定目录中
|
|
Get ( string accessToken, string mediaId, |
获取临时媒体文件
|
|
GetAsync ( string accessToken, string mediaId, |
【异步方法】获取临时媒体文件
|
|
GetCount ( string accessToken, int agentId ) : |
获取素材总数
|
|
GetCountAsync ( string accessToken, int agentId ) : Task |
【异步方法】获取素材总数
|
|
GetForeverMaterial ( string accessToken, int agentId, string mediaId, |
获取临时媒体文件
|
|
GetForeverMaterialAsync ( string accessToken, int agentId, string mediaId, |
【异步方法】获取临时媒体文件
|
|
GetForeverMpNews ( string accessToken, int agentId, string mediaId ) : |
获取永久图文素材
|
|
GetForeverMpNewsAsync ( string accessToken, int agentId, string mediaId ) : Task |
【异步方法】获取永久图文素材
|
|
UpdateMpNews ( string accessToken, string mediaId, int agentId, int timeOut = Config.TIME_OUT ) : |
修改永久图文素材
|
|
UpdateMpNewsAsync ( string accessToken, string mediaId, int agentId, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】修改永久图文素材
|
|
Upload ( string accessToken, UploadMediaFileType type, string media, int timeOut = Config.TIME_OUT ) : |
上传临时媒体文件
|
|
UploadAsync ( string accessToken, UploadMediaFileType type, string media, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】上传临时媒体文件
|
|
UploadimgMedia ( string accessToken, string media, int timeOut = Config.TIME_OUT ) : |
上传图文消息内的图片
|
|
UploadimgMediaAsync ( string accessToken, string media, int timeOut = Config.TIME_OUT ) : Task |
【异步方法】上传图文消息内的图片
|
public static AddMaterial ( string accessToken, UploadMediaFileType type, int agentId, string media, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
type | UploadMediaFileType | |
agentId | int | |
media | string | |
timeOut | int | |
Результат |
public static AddMaterialAsync ( string accessToken, UploadMediaFileType type, int agentId, string media, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
type | UploadMediaFileType | |
agentId | int | |
media | string | |
timeOut | int | |
Результат | Task |
public static AddMpNews ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
agentId | int | |
timeOut | int | |
Результат |
public static AddMpNewsAsync ( string accessToken, int agentId, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
agentId | int | |
timeOut | int | |
Результат | Task |
public static BatchGetMaterial ( string accessToken, UploadMediaFileType type, int agentId, int offset, int count, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
type | UploadMediaFileType | |
agentId | int | |
offset | int | |
count | int | |
timeOut | int | |
Результат |
public static BatchGetMaterialAsync ( string accessToken, UploadMediaFileType type, int agentId, int offset, int count, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
type | UploadMediaFileType | |
agentId | int | |
offset | int | |
count | int | |
timeOut | int | |
Результат | Task |
public static DeleteForeverMaterial ( string accessToken, int agentId, string mediaId ) : |
||
accessToken | string | |
agentId | int | |
mediaId | string | |
Результат |
public static DeleteForeverMaterialAsync ( string accessToken, int agentId, string mediaId ) : Task |
||
accessToken | string | |
agentId | int | |
mediaId | string | |
Результат | Task |
public static Get ( string accessToken, string mediaId, string dir ) : string | ||
accessToken | string | |
mediaId | string | |
dir | string | 保存目录 |
Результат | string |
public static Get ( string accessToken, string mediaId, |
||
accessToken | string | |
mediaId | string | |
stream | ||
Результат | void |
public static GetAsync ( string accessToken, string mediaId, |
||
accessToken | string | |
mediaId | string | |
stream | ||
Результат | System.Threading.Tasks.Task |
public static GetCount ( string accessToken, int agentId ) : |
||
accessToken | string | |
agentId | int | |
Результат |
public static GetCountAsync ( string accessToken, int agentId ) : Task |
||
accessToken | string | |
agentId | int | |
Результат | Task |
public static GetForeverMaterial ( string accessToken, int agentId, string mediaId, |
||
accessToken | string | |
agentId | int | |
mediaId | string | |
stream | ||
Результат | void |
public static GetForeverMaterialAsync ( string accessToken, int agentId, string mediaId, |
||
accessToken | string | |
agentId | int | |
mediaId | string | |
stream | ||
Результат | System.Threading.Tasks.Task |
public static GetForeverMpNews ( string accessToken, int agentId, string mediaId ) : |
||
accessToken | string | |
agentId | int | |
mediaId | string | |
Результат |
public static GetForeverMpNewsAsync ( string accessToken, int agentId, string mediaId ) : Task |
||
accessToken | string | |
agentId | int | |
mediaId | string | |
Результат | Task |
public static UpdateMpNews ( string accessToken, string mediaId, int agentId, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
mediaId | string | |
agentId | int | |
timeOut | int | |
Результат |
public static UpdateMpNewsAsync ( string accessToken, string mediaId, int agentId, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
mediaId | string | |
agentId | int | |
timeOut | int | |
Результат | Task |
public static Upload ( string accessToken, UploadMediaFileType type, string media, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | 调用接口凭证 |
type | UploadMediaFileType | 媒体文件类型,分别有图片(image)、语音(voice)、视频(video),普通文件(file) |
media | string | form-data中媒体文件标识,有filename、filelength、content-type等信息 |
timeOut | int | 代理请求超时时间(毫秒) |
Результат |
public static UploadAsync ( string accessToken, UploadMediaFileType type, string media, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | 调用接口凭证 |
type | UploadMediaFileType | 媒体文件类型,分别有图片(image)、语音(voice)、视频(video),普通文件(file) |
media | string | form-data中媒体文件标识,有filename、filelength、content-type等信息 |
timeOut | int | 代理请求超时时间(毫秒) |
Результат | Task |
public static UploadimgMedia ( string accessToken, string media, int timeOut = Config.TIME_OUT ) : |
||
accessToken | string | |
media | string | |
timeOut | int | |
Результат |
public static UploadimgMediaAsync ( string accessToken, string media, int timeOut = Config.TIME_OUT ) : Task |
||
accessToken | string | |
media | string | |
timeOut | int | |
Результат | Task |