mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-05-19 03:58:19 +00:00
Migration from Amazon MWS to Selling Partner API
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using bnhtrade.Core.Data.Amazon.SellingPartnerAPI;
|
||||
using FikaAmazonAPI;
|
||||
using FikaAmazonAPI.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using static FikaAmazonAPI.Utils.Constants;
|
||||
|
||||
namespace bnhtrade.Core.Data.Amazon.Feeds
|
||||
{
|
||||
public class GetFeed
|
||||
{
|
||||
private AmazonConnection amznConn = new SpApiConnection().Connection;
|
||||
|
||||
public void GetFeeds(string feedId)
|
||||
{
|
||||
var param = new FikaAmazonAPI.Parameter.Feed.ParameterGetFeed();
|
||||
param.pageSize = 100;
|
||||
param.processingStatuses = ProcessingStatuses.DONE;
|
||||
param.feedTypes = new List<FeedType> { FeedType.POST_PRODUCT_PRICING_DATA };
|
||||
|
||||
var result = amznConn.Feed.GetFeeds(param);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user