美团配送增加api,查询商家账号信息
This commit is contained in:
@@ -15,3 +15,9 @@ func (a *API) PagePoiUpdate(outerPoiID, contactName, contactPhone, contactEmail
|
||||
_, err = a.AccessAPI2("https://peisong.meituan.com/api", "haikuiopen/haikui/open/partner/poi/update", params)
|
||||
return err
|
||||
}
|
||||
|
||||
func (a *API) GetAccountDetail() (err error) {
|
||||
params := map[string]interface{}{}
|
||||
_, err = a.AccessAPI2("https://peisong.meituan.com/api", "haikuiopen/haikui/open/partner/base/detail", params)
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -10,3 +10,10 @@ func TestPagePoiUpdate(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetAccountDetail(t *testing.T) {
|
||||
err := api.GetAccountDetail()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user