Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Yuyao Zhong
    @YuyaoZhong
    Actually I think you just need to concate the links. We use impact as well and I think if you have sample links generated by impact, the first part of the links are identical for all sets
    *items
    Devon Wasson
    @devonwasson
    That is correct, you don't need to use the affiliate API to generate affiliate links, you can grab a walmart link and construct the link yourself
    Mandar Deshpande
    @mandardeshpande
    Hello All
    I am adding the auth headers for the api call for store i keep getting 520 response code
    any pointers on how to fix this
    Mandar Deshpande
    @mandardeshpande
    anyone there ?
    Saurabh G.
    @movibeast
    @devonwasson @YuyaoZhong thanks, I got the pic of it now.
    mypickapp
    @mypickapp
    Does anyone on this page have access to an API for search product?
    like an API for walmart or amazon search product?
    I will pay if any of you have an account you can share with me...I need it for my app
    Alialshammari-iq
    @Alialshammari-iq
    Hi All
    Please i need help me
    Alialshammari-iq
    @Alialshammari-iq
    I am from iraq i have wherhouse in US and i need created project in iraq A website that displays Walmart products and customers pay me. I buy from Walmart to the warehouse address in America, but I don't know what kind of IBI is used.
    Please send me on email iraqmasukgi@gmail.com
    sharedeals
    @sharedeals
    Does anyone know how to generate the signature in PHP? I keep getting 401 Unauthorized. The client must authenticate itself to get the requested response.
    bsharipov99
    @bsharipov99
    Hi, how can I get product API? I need API for my application, customer search product from my application, my application will redirect to Walmart website
    mypickapp
    @mypickapp
    @gmanigandan or does any one have a search product (with keywords) API ....if you already have an account with walmart or amazon...Or can tell me where I can find an API for my app....I will pay to share the account .
    gorenstein
    @gorenstein

    Hi @sharedeals

    Does anyone know how to generate the signature in PHP? I keep getting 401 Unauthorized. The client must authenticate itself to get the requested response.

    it work to me:

    <?php
    
    declare(strict_types=1);
    
    
    namespace WalmartBundle\Services;
    
    
    use Psr\Log\LoggerInterface;
    use Symfony\Component\HttpClient\HttpClient;
    use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
    use Symfony\Contracts\HttpClient\HttpClientInterface;
    use Symfony\Contracts\HttpClient\ResponseInterface;
    
    /**
     * @author Serge Gorenstein <digitkraft@gmail.com>
     */
    class WalmartHttpClient
    {
        private const WM_BASE_URL = 'https://developer.api.walmart.com/api-proxy/service/affil/product/v2/';
        private const WM_CONSUMER_ID = 'YOU CONSUMER_ID';
        private const WM_SEC_KEY_VERSION = '2';
        private const WM_SEC_PRIVATE_KEY = 'YOU PRIVATE_KEY';
    
        protected HttpClientInterface $httpClient;
        protected string $milliseconds;
        private LoggerInterface $logger;
    
        public function __construct(LoggerInterface $logger)
        {
            $this->logger = $logger;
            $this->milliseconds = (string)round(microtime(true) * 1000);
            $this->httpClient = HttpClient::create($this->getDefaultOptions());
        }
    
        public function request(string $method, string $path, array $option = []): ResponseInterface
        {
            $url = self::WM_BASE_URL . $path;
    
            try {
                return $this->httpClient->request($method, $url, $option);
            } catch (TransportExceptionInterface $e) {
                $this->logger->error($url . ' :: ' . $e->getMessage());
                throw $e;
            }
        }
    
        private function getDefaultOptions(): array
        {
            return [
                'headers' => [
                    'WM_SEC.KEY_VERSION' => self::WM_SEC_KEY_VERSION,
                    'WM_CONSUMER.ID' => self::WM_CONSUMER_ID,
                    'WM_CONSUMER.INTIMESTAMP' => $this->milliseconds,
                    'WM_SEC.AUTH_SIGNATURE' => $this->getSignature(),
                    'Accept' => 'application/json',
                ],
                //'max_host_connections' => 1,
                //'timeout' => 15.0,
                //'max_duration' => 60.0,
                //'http_version' => '1.1',
            ];
        }
    
        private function getSignature(): string
        {
            $message = self::WM_CONSUMER_ID . "\n" . $this->milliseconds . "\n" . self::WM_SEC_KEY_VERSION . "\n";
    
            return WalmartAuthSignature::sign($message, self::WM_SEC_PRIVATE_KEY);
        }
    }
    <?php
    
    declare(strict_types=1);
    
    namespace WalmartBundle\Services;
    
    
    use phpseclib\Crypt\RSA;
    
    /**
     * Class WalmartAuthSignature
     *
     *  Thanks: https://github.com/fillup/walmart-auth-signature-php/blob/develop/src/Signature.php
    
     * @author Serge Gorenstein <digitkraft@gmail.com>
     * @package WalmartBundle\Services
     */
    class WalmartAuthSignature
    {
        public static function sign(string $message, string $privateKey): string
        {
            $rsa = new RSA();
    
            $decodedPrivateKey = base64_decode($privateKey);
            $rsa->setPrivateKeyFormat(RSA::PRIVATE_FORMAT_PKCS8);
            $rsa->setPublicKeyFormat(RSA::PRIVATE_FORMAT_PKCS8);
    
            if ($rsa->loadKey($decodedPrivateKey, RSA::PRIVATE_FORMAT_PKCS8)) {
                $rsa->setHash('sha256');
                $rsa->setSignatureMode(RSA::SIGNATURE_PKCS1);
                $signed = $rsa->sign($message);
    
                return base64_encode($signed);
            }
    
            throw new \Exception('Unable to load private key');
        }
    }
    rajugurung
    @rajugurung
    I am trying to upload a public key for my application in the dashboard and page just doesn't respond
    Shawn Cao
    @cxy007_twitter
    same here
    I am trying to upload a public key for my application in the dashboard and page just doesn't respond
    for multiple days
    format like this: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAiZwxUkj3xJSNetfXFpTAjOE65A35a+fKKyyZsQ05st0wBkp/073jXkZAGDUCJf/bC/4/2zLXvFDxqmyTBbXOO5+J2JnSGRogUOISagLU3EJF4vZoGiHQtreU+Nj+KJtvAQVRQPjrC+tzEk5LzhvHbRLASsF8p831dOOdjWEl1Ze0VGazSxF7RFX+4IaP8nuWTvn7QByeZxwBiR0YMC8QGHp12a/NJKnWR+ccUfVQcDbOmmZ3xpmk0ErtkYG1laR2fXYGComKF9nZqk40XYf4agedslwOfErLI3niA6TtwGg8vIvkFElJDATTGZkaA4BHqoa8p1xXNP1YduQBPbHjhQ== rsa-key-20200813
    Hammad rauf
    @hammad-rauf
    Hi
    i am confused how to use API in python
    i have all keys
    anyone have code template ?
    Krishna Gupta
    @krishna221993
    Hi
    sgdpacking
    @sgdpacking
    hello
    I use the Try API form and get the response code 401
    Unauthorized. The client must authenticate itself to get the requested response.
    I have put the customer id, Authentication timestamp, and Authentication signature
    what else do I need?
    sgdpacking
    @sgdpacking
    520{"details":{"Description":"Internal Proxy Error","wm_svc.version":"2.0.0","wm_svc.name":"affil-product","wm_svc.env":"prod"}}
    sgdpacking
    @sgdpacking
    If I run from my code, I get the above error message (520)
    gorenstein
    @gorenstein

    Hello @all,

    a long time ago, I registered for Walmart Affiliate links on impact.com, but still on impact.com I see: “Your application with Walmart Affiliate is still under review.”

    Postmaster rejecting my emails to affiliates@walmart.com (A communication failure occurred during the delivery of this message. Please try resending the message later).

    Does anyone know a suitable contact email for Walmart Affiliate support?

    P.S. web site with walmart.io-API works to me for a long time without problem

    BR

    pradgrocacc
    @pradgrocacc
    Hi - how do you get access to affiliates API for Product Lookup?
    stasdikiy
    @stasdikiy
    hey hi, im trynna to upload an item via walmart's api
    i got only one item
    and got an error Seller reached maximum cap limit for Canada Marketplace items setup. Please contact Walmart Partner Support to increase cap limit.
    does anybody know??
    please..
    LazyPerks helps you shop smarter
    @LazyPerks_twitter
    I'm trying to use Trending Items API call and can't make it work. Every time when I make a call, I keep getting {"errors":[{"code":0,"message":"Trending items unavailable"}]}. I'm pretty sure, that all headers are set, since taxonomy call with the same header do return successful result. Will greatly appreciate any info on the subject.
    Imran
    @Imran84109377_twitter
    I am trying out the Product Lookup API from the Try API interface on the website but keep getting a 520 response code. I have entered Version, Consumer Id, timestamp and signature. Timestamp and signature was generated using sample java code they have provided. Has anyone been able to get the Product Lookup API to work?
    Daniele Salatti
    @DanieleSalatti
    is there any way to search for product availability in a specific store?
    Shawn Cao
    @cxy007_twitter
    Hello. Does someone has C# version of this page? https://walmart.io/docs/affiliate/onboarding-guide
    It has java version, but I am using c#
    today I finally upload my public key successfully
    Maria Jaramillo
    @mdmjg
    In order to use the Marketplace API, do I need to be an approved Solution Provider? I am not a seller, but I want other sellers to use my service
    John Moscarillo
    @moscarillo
    How do I get access to OPD API and OAuth API? I have a client id
    1 reply
    phamanh195
    @phamanh195

    In order to use the Marketplace API, do I need to be an approved Solution Provider? I am not a seller, but I want other sellers to use my service

    I have the same question, how could I register as an approved solution provider and test in Sandbox?