logo
Commands
Data Base Commands
Codelist  
Edit  
New Code   
Stand alone Commands
Try    
Information about commands
API's URL: https://mchsoft.com/demos/upc/api/api.php
Command:
Mode:
Parameters:
Return:
Description:
User Manual (PDF):
Download the user manual here
Execution results
Coding examples
function make_curl(){ $curl = curl_init(); $request='https://mchsoft.com/demos/upc/api/api.php'; $post=array('code'=>'184416660123','label'=>'this label','show'=>'true','method'=>'php'); $defaults = array( CURLOPT_POST => 1, CURLOPT_HEADER => 0, CURLOPT_URL => $request, CURLOPT_FRESH_CONNECT => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_FORBID_REUSE => 1, CURLOPT_TIMEOUT => 30, CURLOPT_POSTFIELDS => http_build_query($post) ); curl_setopt_array($curl, $defaults); try { if( !$resp = curl_exec($curl)){ throw new Exception(curl_error($curl)." Error No: ".curl_errno($curl)); } } catch (Exception $e) { return ('Caught exception in curl: '. $e->getMessage()); } curl_close($curl); return $resp; } (function(){ params={'user':'<YOURUSERNAME>','pwd':'<YOURPASSWORD>','addcode':'true','code':'184416660123','label':'this label'}; OR params={'code':'184416660123','label':'this label'}; $.ajax({type: "POST",url:"https://mchsoft.com/demos/upc/api/api.php?", data:params,success: function(result){ . . . . }}); })();