0 utilizadores on-line |
0 Convidados e 0 Registados

How to get the list of countries registered via API?


URL: http://www.nomedoseusite.com.br/api_products_others.php?action=countries

 

Header Parameter Format
Usuario1 base64_encode()
Senha1 base64_encode()

 

PHP Sample:

 

	// sample countries
	
	if ($_GET['action'] == 'countries') {
	
	$url = $domain_url . '/api_products_others.php?action=countries';

	$ch = curl_init($url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);                                                                   
	curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                          
		'Content-Type: application/json',
		"Cache-Control: no-cache", 
		'Token: ' . base64_encode($token),
		'Secret: ' . base64_encode($secret),
		'E-mail: ' . base64_encode($email),
		'Content-Length: ' . strlen($data_string))
	);                                                                                                          
																														 
	$result = curl_exec($ch);
	curl_close($ch);

	print_r($result);
	
	}

	// sample countries eof

 

Return:

id
text 

 

2019-03-13 00:25 MFORMULA FAQ {writeRevision}
Avaliação média: 0 (0 Avaliações)

Não pode comentar este artigo

Chuck Norris has counted to infinity. Twice.

{debugMessages}