File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -338,13 +338,6 @@ func (c *StoreClient) GetSubscriptionRenewalDataStatus(ctx context.Context, prod
338
338
// GetNotificationHistory https://developer.apple.com/documentation/appstoreserverapi/get_notification_history
339
339
func (c * StoreClient ) GetNotificationHistory (ctx context.Context , body NotificationHistoryRequest ) (responses []NotificationHistoryResponseItem , err error ) {
340
340
baseURL := c .hostUrl + PathGetNotificationHistory
341
-
342
- bodyBuf := new (bytes.Buffer )
343
- err = json .NewEncoder (bodyBuf ).Encode (body )
344
- if err != nil {
345
- return nil , err
346
- }
347
-
348
341
URL := baseURL
349
342
350
343
for {
@@ -357,8 +350,8 @@ func (c *StoreClient) GetNotificationHistory(ctx context.Context, body Notificat
357
350
rsp := NotificationHistoryResponses {}
358
351
rsp .NotificationHistory = make ([]NotificationHistoryResponseItem , 0 )
359
352
353
+ client = SetRequestBodyJSON (client , body )
360
354
client = SetRequest (ctx , client , http .MethodPost , URL )
361
- client = SetRequestBodyJSON (client , bodyBuf )
362
355
client = SetResponseBodyHandler (client , json .Unmarshal , & rsp )
363
356
_ , err = client .Do (nil )
364
357
if apiErr .errorCode != 0 {
You can’t perform that action at this time.
0 commit comments