File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
Source/FikaAmazonAPI.SampleCode Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,24 @@ AmazonConnection amazonConnection = new AmazonConnection(new AmazonCredential()
125
125
126
126
```
127
127
128
+ ### Configuration using a proxy
129
+ > ``` csharp
130
+ > AmazonConnection amazonConnection = new AmazonConnection (new AmazonCredential ()
131
+ > {
132
+ > AccessKey = " AKIAXXXXXXXXXXXXXXX" ,
133
+ > SecretKey = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
134
+ > RoleArn = " arn:aws:iam::XXXXXXXXXXXXX:role/XXXXXXXXXXXX" ,
135
+ > ClientId = " amzn1.application-XXX-client.XXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
136
+ > ClientSecret = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
137
+ > RefreshToken = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
138
+ > MarketPlaceID = " A2VIGQ35RCS4UG" ,
139
+ > ProxyAddress = " http(s)://xxx.xxx.xxx.xxx:xxxx" ,
140
+ > });
141
+ > ```
142
+ >> * Assign your proxy address to the ProxyAddress Property and you 'll be able to use a proxy account.
143
+ >>
144
+ >> *** This is not required and will operate normally without the ProxyAddress being set .***
145
+
128
146
### Order List, For more orders sample please check [Here](https:// github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/ReportsSample.cs).
129
147
```CSharp
130
148
ParameterOrderList serachOrderList = new ParameterOrderList ();
Original file line number Diff line number Diff line change @@ -27,6 +27,20 @@ static async Task Main(string[] args)
27
27
SellerID = config . GetSection ( "FikaAmazonAPI:SellerId" ) . Value ,
28
28
IsDebugMode = true
29
29
} ) ;
30
+
31
+ AmazonConnection amazonConnectionUsingAProxy = new AmazonConnection ( new AmazonCredential ( )
32
+ {
33
+ AccessKey = config . GetSection ( "FikaAmazonAPI:AccessKey" ) . Value ,
34
+ SecretKey = config . GetSection ( "FikaAmazonAPI:SecretKey" ) . Value ,
35
+ RoleArn = config . GetSection ( "FikaAmazonAPI:RoleArn" ) . Value ,
36
+ ClientId = config . GetSection ( "FikaAmazonAPI:ClientId" ) . Value ,
37
+ ClientSecret = config . GetSection ( "FikaAmazonAPI:ClientSecret" ) . Value ,
38
+ RefreshToken = config . GetSection ( "FikaAmazonAPI:RefreshToken" ) . Value ,
39
+ MarketPlaceID = config . GetSection ( "FikaAmazonAPI:MarketPlaceID" ) . Value ,
40
+ SellerID = config . GetSection ( "FikaAmazonAPI:SellerId" ) . Value ,
41
+ IsDebugMode = true ,
42
+ ProxyAddress = config . GetSection ( "FikaAmazonAPI:ProxyAddress" ) . Value ,
43
+ } ) ;
30
44
31
45
var search = amazonConnection . ProductType . SearchDefinitionsProductTypes ( new Parameter . ProductTypes . SearchDefinitionsProductTypesParameter
32
46
{
Original file line number Diff line number Diff line change 6
6
"ClientId" : " amzn1.application-oa2-client.0000000000000000000000000000" ,
7
7
"ClientSecret" : " 000000000000000000000000000000000000" ,
8
8
"RefreshToken" : " Atzr|00000000000000000000000000000000000000000000" ,
9
- "MarketPlaceID" : " A2VIGQ35RCS4UG"
9
+ "MarketPlaceID" : " A2VIGQ35RCS4UG" ,
10
+ "ProxyAddress" : " http://localhost:8080" ,
10
11
}
11
12
}
You can’t perform that action at this time.
0 commit comments