PHP code example of knowband / walmart-auth-signature
1. Go to this page and download the library: Download knowband/walmart-auth-signature library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
knowband / walmart-auth-signature example snippets
use Walmart\Auth\Signature as AuthSignature;
$authSignature = new AuthSignature($consumerId, $privateKey, $requestUrl, $requestMethod);
$signatureString = $authSignature->getSignature();
// Make your call
// Get a new signature for a new call
$signatureString = $authSignature->getSignature(null,$newUrl);
use Walmart\Auth\Signature as AuthSignature;
$signatureString = AuthSignature::calculateSignature($consumerId, $privateKey, $requestUrl, $requestMethod);
// Make your call
// Get a new signature for a new call
$signatureString = AuthSignature::calculateSignature($consumerId, $privateKey, $requestUrl, $requestMethod);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.