PHP code example of fillup / walmart-auth-signature-php
1. Go to this page and download the library: Download fillup/walmart-auth-signature-php 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/ */
fillup / walmart-auth-signature-php 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.