
https://api.upcitemdb.com/prod/trial/search?s=The%20War%20of%20the%20Ring%20Board%20Game&match_mode=0&type=product

https://api.upcitemdb.com/prod/trial/search?s=The%20War%20of%20the%20Ring%20Board%20Game&match_mode=1&type=product

https://www.programmableweb.com/category/barcodes/source-code

https://www.semantics3.com/start

http://upcdatabase.org/api-legacy

https://www.ean-search.org/ean-database-api.html

http://www.upcscavenger.com/?q=war+of+the+ring

https://www.digit-eyes.com/gtin/

https://www.datakick.org/api


https://blog.semantics3.com/case-study-series-1-using-the-semantics3-api-as-a-upc-lookup-database-c98623ebf05d  

https://github.com/metafloor/bwip-js/wiki/Online-Barcode-API

https://developer.walmartlabs.com/docs

https://eandata.com/

https://www.upcdatabase.com/ a étudier  patrice Un92pac007
https://www.upcdatabase.com/php_example.txt

https://www.semantics3.com/tools/upc-lookup 

https://github.com/semantics3/semantics3-php

http://www.searchupc.com/api/

https://www.buycott.com/api


Barcode lookup database


Assign RPC Key

RPC Key Assignment

Your RPC key has been assigned.

9800a5cbfdfbb54f41023ab2fafbfd2855ff0327

The key is not case sensitive, but all 40 characters must be used. You may reference this key from the Account Info page at any time.



<?php
	/*
	The following require is part of the PEAR package XML_RPC.
	There is another package called XML_RPC2, this is not it.
	This example takes a simple GET (page.php?upc=123456789012)
	and sends it to the site.  There should probably be some error checking.
	
	To install PEAR for your server you should do one of the following:
	a) follow any instructions for your distro
	b) check your distro's package manager
	c) see http://pear.php.net/manual/en/installation.getting.php
	
	Once you have PEAR, you can install this by either:
	a) using your distro's package manager
	b) issue 'pear install XML_RPC' from the command line as root/admin 
	*/
	require_once 'XML/RPC.php';

	$rpc_key = '0000...0000';	// Set your rpc_key here
	
	// Setup the URL of the XML-RPC service
	$client = new XML_RPC_Client('/xmlrpc', 'https://www.upcdatabase.com');
	
	// Construct the entire parameter list (an array) for the call.
	// The array contains a single XML_RPC_Value object, a struct.
	// The struct is constructed from a PHP associative array, and each
	// value needs to be an XML_RPC_Value object.

	$params = array( new XML_RPC_Value( array(
		'rpc_key' => new XML_RPC_Value($rpc_key, 'string'),
		'upc' => new XML_RPC_Value($_REQUEST['upc'], 'string'),
		), 'struct'));

	// Construct the XML-RPC request.  Substitute your chosen method name
	$msg = new XML_RPC_Message('lookup', $params);
	
	//Set debug info to true.  Useful for testing, shows the response from the server
	// $client->setDebug(1);
	
	//More debug info, create the payload before sending.
	//Not necessary to function, but useful to test
	// $msg->createPayload();
	
	//TEST Print the response to the screen for testing
	// echo "<pre>" . print_r($msg->payload, true) . "</pre><hr />";
	
	//Actually have the client send the message to the server.  Save response.
	$resp = $client->send($msg);
	
	//If there was a problem sending the message, the resp will be false
	if (!$resp)
	{
		//print the error code from the client and exit
		echo 'Communication error: ' . $client->errstr;
		exit;
	}
	
	//If the response doesn't have a fault code, show the response as the array it is
	if(!$resp->faultCode())
	{
		//Store the value of the response in a variable
		$val = $resp->value();
		//Decode the value, into an array.
		$data = XML_RPC_decode($val);
		//Optionally print the array to the screen to inspect the values
		echo "<pre>" . print_r($data, true) . "</pre>";
	}else{
		//If something went wrong, show the error
		echo 'Fault Code: ' . $resp->faultCode() . "\n";
		echo 'Fault Reason: ' . $resp->faultString() . "\n";
	}
?>



Borrowing and Returning Function in PHP/MySQL


https://max-koder.fr/2017/05/05/curl-dialogue-api-php/  pour comprendre curl

http://www.dinduks.com/tutoriel-recuperer-le-contenu-dune-page-web-avec-curl/

https://pastebin.com/u2NeMt8k  example curl

http://phpenthusiast.com/blog/five-php-curl-examples

https://www.w3schools.com/php/php_ajax_database.asp

https://www.w3schools.com/PhP/php_ajax_php.asp

https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_form_submit

