mendeljacks / walmart_marketplace

0 stars 0 forks source link

Is this only for Canada? (CA and all...) #1

Open doverradio opened 2 years ago

doverradio commented 2 years ago

I have the need to upload feeds to my Walmart Marketplace account.

However, I am in the USA.

Will I be able to use your library/package?

mendeljacks commented 2 years ago

I only tested with walmart ca. Walmart ca is similar but does have some differences to Walmart USA. There is a project by whiteboxco that is generated from the USA docs.

If you want the lightweight js only approach from this package and want to generate from the usa docs, it can be done if you are brave. I'd be happy to assist if you have questions.

On Tue., Apr. 12, 2022, 11:35 p.m. rom, @.***> wrote:

I have the need to upload feeds to my Walmart Marketplace account.

However, I am in the USA.

Will I be able to use your library/package?

— Reply to this email directly, view it on GitHub https://github.com/mendeljacks/walmart_marketplace/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRIGKYHJV5ZZFXM2YCVNDVEY6JHANCNFSM5TJJZTTQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

doverradio commented 2 years ago

I'm down for this.

Will be looking into it over the next few days.

Really need to Bulk List, in the same way show when logged in and clicking that Bulk List button on the Items page.

I got one SKU up, but now I'm all fouled up getting a valid token. Constantly get an error that there is a connection error.

Solving this 1, 2, 3 Bulk list is crucial because if this is hard for me, you know that's everyone else's problem coming through that's new here.

mendeljacks commented 2 years ago

Walmart API has non descriptive error messages. This is why a typescript wrapper is useful.

For making the schema use the usa version, copy USA Docs at: https://github.com/whitebox-co/walmart-marketplace-api/tree/main/docs and move them to replace: https://github.com/mendeljacks/walmart_marketplace/tree/master/src/schemas.

Our walmart_marketplace package should be able to handle the signing of tokens. Walmart tokens are made by encrypting the actual request and timestamp using an algorithm specified by walmart docs. I have noticed if your computer has the wrong time it won't work.

https://github.com/mendeljacks/walmart_marketplace/blob/master/src/helpers.ts has a function called generate signature that does the work.

In walmart docs they have a jar method to authenticate which I don't like because it's not javascript so I prefer to have the signing done in the js