fond-of-vertigo / amazon-sp-api Goto Github PK
View Code? Open in Web Editor NEWGolang library for the Amazon Selling Partner (SP) API
License: Apache License 2.0
Golang library for the Amazon Selling Partner (SP) API
License: Apache License 2.0
We are developing our code on Macs and have no problems with your brilliant api, but moving to a Linux server environment, we are stuck. The exact same code produces a valid response on a Mac, but only an empty response in Linux.
e.g. client.FinancesAPI.ListFinancialEventGroups results in : &{200 0x14000e34520 }
but with linux we receive : &{200 }
On which os is the api developed ? Are we missing something ?
PS: Looking deeper into the error, it seems the rdt-token is requested but returns no error or valid token, instead just a nil value is passed back ......
Hello, since we moved to v.0.7.1 we also wanted to updated the order handling.
There we ran into the following problem.
After creating a RDT and filter with:
rr := &tokens.CreateRestrictedDataTokenRequest{ RestrictedResources: []tokens.RestrictedResource{ { Method: http.MethodGet, Path: "/orders/v0/orders", DataElements: []string{"buyerInfo", "shippingAddress"}, }, }, } tokenResp, err := client.TokenAPI.CreateRestrictedDataTokenRequest(rr) log.Infof("Fetched RDT=%s", tokenResp.ResponseBody.RestrictedDataToken) rdt := *tokenResp.ResponseBody.RestrictedDataToken no := time.Now() fro := no.Add(time.Hour * 24 * -10) from := apis.JsonTimeISO8601{Time: fro} filter := &orders.GetOrdersFilter{CreateAfter: from, MarketplaceIDs: []constants.MarketplaceID{constants.Germany}} response, err := client.OrdersAPI.GetOrders(filter, &rdt)
Our response is 400, the RDT response is correct but the filter seems to be wrong.
Any ideas what I am doing wrong here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.