New question

Question:

Date: 12-12-2019 05:11:54 (In Spanish)

axesso API[Unresolved]

Saludos, necesito conectarme con amazon para recuperar informacion de productos, hasta ahora tengo este codigo:
<?php
require_once("vendor/autoload.php");

// Configure API key authorization: api_key
$config = merqi\admin\lib\Configuration::getDefaultConfiguration()->setApiKey('axesso-api-key', 'xxxxxxxxxxxxxxx');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = merqi\admin\lib\Configuration::getDefaultConfiguration()->setApiKeyPrefix('axesso-api-key', 'Bearer');

$apiInstance = new merqi\admin\lib\Api\AmzApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$keyword = "Samsung"; // string | keyword to search
$domain_code = "com"; // string | domain for the search
$sort_by = "relevanceblender"; // string | sort option
$number_of_products = 20; // int | number of the results (max 20)

try {
$result = $apiInstance->keywordSearch($keyword, $domain_code, $sort_by, $number_of_products);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AmzApi->keywordSearch: ', $e->getMessage(), PHP_EOL;
}

?>
me tira este error: Uncaught Error: Class 'merqi\admin\lib\Configuration' not found in C:\xampp\htdocs\merqi\admin\axesso.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\merqi\admin\axesso.php on line 5
Tags: API - HTTPS - Library - PHP - PHP Advanced - PHP Fatal error Votes: 0 - Answers: 1 - Views: 10 Share on: Google Facebook Twitter LinkedIn Link
 

Answers:

To actively participate in the community first must authenticate, enter the system.Sign In
 
frjcbbae garagebible.com