C# Class Senparc.Weixin.MP.AdvancedAPIs.PoiApi

门店管理接口
ファイルを表示 Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
AddPoi ( string accessTokenOrAppId, CreateStoreData createStoreData, int timeOut = Config.TIME_OUT ) : WxJsonResult

创建门店

AddPoiAsync ( string accessTokenOrAppId, CreateStoreData createStoreData, int timeOut = Config.TIME_OUT ) : Task

【异步方法】创建门店

DeletePoi ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : WxJsonResult

删除门店

DeletePoiAsync ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】删除门店

GetCategory ( string accessTokenOrAppId ) : GetCategoryResult

获取门店类目表

GetCategoryAsync ( string accessTokenOrAppId ) : Task

【异步方法】获取门店类目表

GetPoi ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : GetStoreResultJson

查询门店信息

GetPoiAsync ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】查询门店信息

GetPoiList ( string accessTokenOrAppId, int begin, int limit = 20, int timeOut = Config.TIME_OUT ) : GetStoreListResultJson

查询门店列表

GetPoiListAsync ( string accessTokenOrAppId, int begin, int limit = 20, int timeOut = Config.TIME_OUT ) : Task

【异步方法】查询门店列表

UpdatePoi ( string accessTokenOrAppId, UpdateStoreData updateStoreData, int timeOut = Config.TIME_OUT ) : WxJsonResult

修改门店服务信息

UpdatePoiAsync ( string accessTokenOrAppId, UpdateStoreData updateStoreData, int timeOut = Config.TIME_OUT ) : Task

【异步方法】修改门店服务信息

UploadImage ( string accessTokenOrAppId, string file, int timeOut = Config.TIME_OUT ) : UploadImageResultJson

上传图片

UploadImageAsync ( string accessTokenOrAppId, string file, int timeOut = Config.TIME_OUT ) : Task

【异步方法】上传图片

Method Details

AddPoi() public static method

创建门店
public static AddPoi ( string accessTokenOrAppId, CreateStoreData createStoreData, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
createStoreData Senparc.Weixin.MP.AdvancedAPIs.Poi.CreateStoreData
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

AddPoiAsync() public static method

【异步方法】创建门店
public static AddPoiAsync ( string accessTokenOrAppId, CreateStoreData createStoreData, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
createStoreData Senparc.Weixin.MP.AdvancedAPIs.Poi.CreateStoreData
timeOut int
return Task

DeletePoi() public static method

删除门店
public static DeletePoi ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
poiId string
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

DeletePoiAsync() public static method

【异步方法】删除门店
public static DeletePoiAsync ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
poiId string
timeOut int
return Task

GetCategory() public static method

获取门店类目表
public static GetCategory ( string accessTokenOrAppId ) : GetCategoryResult
accessTokenOrAppId string
return Senparc.Weixin.MP.AdvancedAPIs.Poi.GetCategoryResult

GetCategoryAsync() public static method

【异步方法】获取门店类目表
public static GetCategoryAsync ( string accessTokenOrAppId ) : Task
accessTokenOrAppId string
return Task

GetPoi() public static method

查询门店信息
public static GetPoi ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : GetStoreResultJson
accessTokenOrAppId string
poiId string
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Poi.GetStoreResultJson

GetPoiAsync() public static method

【异步方法】查询门店信息
public static GetPoiAsync ( string accessTokenOrAppId, string poiId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
poiId string
timeOut int
return Task

GetPoiList() public static method

查询门店列表
public static GetPoiList ( string accessTokenOrAppId, int begin, int limit = 20, int timeOut = Config.TIME_OUT ) : GetStoreListResultJson
accessTokenOrAppId string
begin int 开始位置,0 即为从第一条开始查询
limit int 返回数据条数,最大允许50,默认为20
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Poi.GetStoreListResultJson

GetPoiListAsync() public static method

【异步方法】查询门店列表
public static GetPoiListAsync ( string accessTokenOrAppId, int begin, int limit = 20, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
begin int 开始位置,0 即为从第一条开始查询
limit int 返回数据条数,最大允许50,默认为20
timeOut int
return Task

UpdatePoi() public static method

修改门店服务信息
public static UpdatePoi ( string accessTokenOrAppId, UpdateStoreData updateStoreData, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
updateStoreData Senparc.Weixin.MP.AdvancedAPIs.Poi.UpdateStoreData 修改门店服务信息需要Post的数据
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

UpdatePoiAsync() public static method

【异步方法】修改门店服务信息
public static UpdatePoiAsync ( string accessTokenOrAppId, UpdateStoreData updateStoreData, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
updateStoreData Senparc.Weixin.MP.AdvancedAPIs.Poi.UpdateStoreData 修改门店服务信息需要Post的数据
timeOut int
return Task

UploadImage() public static method

上传图片
public static UploadImage ( string accessTokenOrAppId, string file, int timeOut = Config.TIME_OUT ) : UploadImageResultJson
accessTokenOrAppId string
file string 文件路径
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Poi.UploadImageResultJson

UploadImageAsync() public static method

【异步方法】上传图片
public static UploadImageAsync ( string accessTokenOrAppId, string file, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
file string 文件路径
timeOut int
return Task