-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
I tried your sdk for wall-mart integration but it failed at the very beginning. I did the dollowing thing:
require_once 'vendor/autoload.php';
use Walmart\Feed;
$client = new Feed([
'consumerId' => 'MYCONSUMERKEY',
'privateKey' => 'MYPRIVATEKEY'
]);
$feed = $client->get([
'feedId' => 'EAA473B65DFF4DA6A80DA4C8586E4BA9@AQMBAQA', // required
'includeDetails' => 'true', // optional, default false
'limit' => 50, // optional, default 50
'offset' => 0, // optional, default 0
]);
But vendor/fillup/walmart-auth-signature-php/src/Signature.php:112 here error is thrown.
I checked there
if($rsa->loadKey($decodedPrivateKey,RSA::PRIVATE_FORMAT_PKCS8)){}
was checked. Which then returned false. So I went to $rsa->loadKey where I saw
if ($key instanceof RSA) {}
if ($type === false) {}else {
$components = $this->_parseKey($key, $type);
}
The code enters into else statement where _parseKey returns false. What is actually happening here ? Am I missing any php modules or is this the fault of SDK ?
Please help me out on this. Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels