PDA

View Full Version : Mobile API


DeadCode
03-12-2012, 09:09 PM
Hello everyone,

I have a problem with the Mobile API.

I don't understand how to generate a signature, and the Documentation does not help at all...

Thank you.

DeadCode
03-22-2012, 11:36 AM
Anyone?

DeadCode
03-25-2012, 07:19 PM
nvm found it.

gigagon
04-20-2012, 03:48 PM
Hi,
you can lock on my api-test-logn-script: https://vborg.vbsupport.ru/showthread.php?p=2321926#post2321926


...
$requestparams = array('api_m' => 'login_login', 'vb_login_username' => $userName, 'vb_login_md5password' => md5($password));
ksort($requestparams);
$login_string = http_build_query($requestparams, '', '&');

$apiaccesstoken = $jsarray->{'apiaccesstoken'};
$apiclientid = $jsarray->{'apiclientid'};
$secret = $jsarray->{'secret'};

$apiversion = $jsarray->{'apiversion'};

// signature
$api_sig = md5($login_string . $apiaccesstoken . $apiclientid . $secret . $apikey);
$api_registration_information = 'api_c='. $apiclientid .'&api_s='. $apiaccesstoken .'&api_sig='. $api_sig .'&api_v='. $apiversion;
...


many greetings
gigagon