master #12
|
@ -201,7 +201,7 @@ func (c *Client) UnregisterWebhook(req UnregisterWebhookReq) (*UnregisterWebhook
|
||||||
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats bad request %s", res.Body)
|
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats bad request %s", res.Body)
|
||||||
}
|
}
|
||||||
var data UnregisterWebhookRes
|
var data UnregisterWebhookRes
|
||||||
if err = r.ParseResponseData(&data); err != nil {
|
if err = r.ParseResponseData(&data.Success); err != nil {
|
||||||
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats parse response %v, %s", err, res.Body)
|
return nil, fmt.Errorf("kiotviet.Client.UnregisterWebhook - requestHttpViaNats parse response %v, %s", err, res.Body)
|
||||||
}
|
}
|
||||||
return &data, nil
|
return &data, nil
|
||||||
|
|
Loading…
Reference in New Issue