Log in or register to post comments

Questions for PHP Developers

February 1, 2013 - 8:17am #1

We are going to be developing  VWS API samples in PHP, similar to our Java samples, and would like to get an idea of what libraries and extensions our PHP developers are using and how you are hosting your PHP apps.

Please give us some feedback to help us meet your requirements.

Thanks

David

Questions for PHP Developers

March 22, 2015 - 4:27am #56

Hi , 

Does any one have working codes for posting and deleting targets and metadata packages ? I 've tried to run the php samples but they didn't work ://  plz help i'm getting

 stuck ..thank's in advance . 

Questions for PHP Developers

March 20, 2015 - 2:36am #55

hello ,

I couldn't run the vws samples in my web server . Is there a way to configure my web server to host these php samples ? 

thank's in advance .

Questions for PHP Developers

March 19, 2015 - 1:28pm #54

The samples can now be downloaded from this page:

https://developer.vuforia.com/downloads/samples

 

Questions for PHP Developers

March 19, 2015 - 12:52pm #53

https://developer.vuforia.com/resources/sample-apps/vuforia-web-services-api-php-implementation

this  no more never available .. what 's the reason ?

 

 

..

Questions for PHP Developers

February 5, 2015 - 12:55am #52

Hello,

 

I am trying to configure web service sample code but its geting error same like.

 

Warning: file_get_contents([ /path/file.ext ]) [function.file-get-contents]: failed to open stream: No such file or directory in /home/cfinhas/public_html/vuforiaAPI/PostNewTarget.php on line 32

POST 50e1355748cef4133fe5eff8597276e0 application/json Thu, 05 Feb 2015 08:52:01 GMT //vws.vuforia.com/targetsError: Unable to connect to ssl://vws.vuforia.comhttps:443. Error: php_network_getaddresses: getaddrinfo failed: Name or service not known

 

can anyone tell me how to configure web service..

 

please check image as I have attached.

 

 

AttachmentSize
Image icon error.png101.07 KB

Questions for PHP Developers

May 7, 2014 - 3:00am #51

the Vuforia VWS RESTful API allows you to interact (as a web client) with the Cloud Databases on your Cloud accounts.

The VWS API is just a RESTful API and you can implement it in PHP, Java, or other language, as long as you can open an HTTP client )as shown in the samples) and connect to the Vuforia Cloud servers.

The PHP and Java samples show how this can be done, but they don't make any assumptions on interoperability with specific servers such as wamp.

 

Questions for PHP Developers

May 7, 2014 - 2:44am #50

may i know sir, wamp server working or not in vuforia api. and i use develop plan can any issue this result.

 

copy and paste of the file.. where require_once 'HTTP/Request2.php'; file sir

Questions for PHP Developers

May 7, 2014 - 2:26am #49

https://developer.vuforia.com/resources/sample-apps/vuforia-web-services-api-php-implementation

these should work fine, but you need to copy-paste your actual Server Access and Secret Keys in the code.

 

Questions for PHP Developers

May 7, 2014 - 2:26am #48

AlessandroB wrote:

Hi,

the error you are getting indicates that a Target with that name already exists, i.e. you have previously uploaded another target using the same name.

If you use a different name for the target in your PostNewTarget request, you should be able to succeed.

 

Questions for PHP Developers

May 7, 2014 - 12:58am #47

Dear Sir.

Thanks for your code. I have php sample code used. we are get  HTTP status: 401 Unauthorized {"result_code":"AuthenticationFailure". give me a suggestion.

 

 

AttachmentSize
Image icon errormsg.png159.63 KB

Questions for PHP Developers

June 26, 2013 - 5:30am #46

Hi,

the error you are getting indicates that a Target with that name already exists, i.e. you have previously uploaded another target using the same name.

If you use a different name for the target in your PostNewTarget request, you should be able to succeed.

 

Questions for PHP Developers

June 26, 2013 - 5:26am #45

Thanks for PHP Sample code.

I got this header that I tried to PostNewTarget;

 

POST 4a1fbe93018de56fbc402fcf6888b6a5 application/json Wed, 26 Jun 2013 12:23:31 GMT /targetsUnexpected HTTP status: 403 Forbidden {"result_code":"TargetNameExist","transaction_id":"21307ece8d7b47c688e6a08f89bffdae"}

 

403 Forbidden.

 

Authentication details are correct. So, what is this issue? If any one has a idea, pls tell me?

Questions for PHP Developers

June 20, 2013 - 5:56am #44

UPDATE: you can now download the PHP samples.

Questions for PHP Developers

June 20, 2013 - 4:40am #43

You're right, it seems we can only download Java samples at the moment; there has been a recent update which might have caused this issue.

I'll report to the product team to correct this issue asap.

Thanks.

 

Questions for PHP Developers

June 20, 2013 - 3:06am #42

Hi!

I have cleared cache etc, but the PHP files are nowhere to be found.

?

 

 

Questions for PHP Developers

June 8, 2013 - 9:08am #41

Try clearing your browser cache and then downloading the archive again. The PHP samples are included w/ the Java samples - VWS Sample Code

Questions for PHP Developers

June 7, 2013 - 10:11pm #40

where is sample code for php.. i downloaded the zip file, bt its for java..

regards
ejo khan

Questions for PHP Developers

May 22, 2013 - 9:16am #39

Hello David,

Thanks for your reply which let me to realise that the problem could be somewhere in my code or on the hosting server where I host my php code.

Issue has been resolved. The problem was on the network configuration of the hosting server which has been changed without my intervention but maybe by the hosting company. 

The great news, as you've mentioned, is that the old VWS API is working fine.

 

Best Regards,

Mostafa

 

Questions for PHP Developers

May 21, 2013 - 6:54pm #38

There has been no change to the API that requires you to use the new PHP samples. What response are your getting from the VWS service?

Questions for PHP Developers

May 21, 2013 - 7:50am #37

I found that the previous php code is not posting a target to the cloud database. Is it invalid any more and we've to use the new PHP API of VWS??

 

Regards,

Mostafa

Questions for PHP Developers

May 20, 2013 - 10:42am #36

how to delete the target image and meta data packages using php curl method??

Questions for PHP Developers

May 17, 2013 - 12:25pm #35

We've added a complete set of PHP samples to our VWS Sample Code.

 

Questions for PHP Developers

May 13, 2013 - 12:22pm #34

OMG,shame shame shame I forgot a / in my url !!!! I'm sorry for bothering you guys!!!!

Cheers and thanks for the help

Questions for PHP Developers

May 13, 2013 - 12:15pm #33

It's a 404 error now.

HTTP/1.1 100 Continue HTTP/1.1 404 Not Found Server: Apache-Coyote/1.1 Content-Type: text/html;charset=utf-8 Content-Length: 952 Date: Mon, 13 May 2013 19:13:08 GMT

 

I don't understand, it seems that the credentials are set up correctly :

$credentials = createSignature("/targets/".$targetId, "PUT", "application/json",$content);

and my function doesn't have any dark magic :

function updateData($credentials, $target ,$TargetID, $data){
    $date = new DateTime("now", new DateTimeZone("GMT")); 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $target.$TargetID);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt($ch, CURLOPT_HEADER, true);
    curl_setopt($ch, CURLOPT_VERBOSE, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Date: ' .$date->format("D, d M Y H:i:s"). " GMT", 'Content-Type: application/json', 'Authorization: VWS ' .$credentials));
    $json = curl_exec($ch);
    curl_close($ch);
    return $json;
  
 
}

I feel that the error is a small one.

Questions for PHP Developers

May 13, 2013 - 12:10pm #32

Hi,

I tried to pass all the parameters :

$arr = array("name"=>$result[$i]['target_name'],"width"=>$result[$i]['target_width'],"image"=>$image , "active_flag" => 1,"application_metadata"=>'');
$content = json_encode($arr);

But still doesn't work :( 

Help Please

you can PM me

Questions for PHP Developers

May 13, 2013 - 12:00pm #31

You should be able to.

Are you actually getting a 404 error, or a 401 error - the latter is an authentication error.

Questions for PHP Developers

May 13, 2013 - 11:53am #30

Yes I'm going to try this but can't I just update the active flag ? When I look at the dev guid (https://developer.vuforia.com/resources/dev-guide/updating-target-cloud-database) I see that noone of the data parameters are mandatory?

Thank you

Questions for PHP Developers

May 12, 2013 - 7:18am #29

Please try to include all the information in the array

 

$arr = array("name"=>"test","width"=>320,"image"=>$image , "active_flag" => 1,"application_metadata"=>$metadata);

 

 

 

Questions for PHP Developers

May 12, 2013 - 6:10am #28

 

Hi, 

thanks for your answer.

I tried with your code but I still get a 404 error :-(

function updateData($credentials, $target ,$TargetID, $data){
    $date = new DateTime("now", new DateTimeZone("GMT")); 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $target.$TargetID);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt($ch, CURLOPT_HEADER, true);
    curl_setopt($ch, CURLOPT_VERBOSE, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Date: ' .$date->format("D, d M Y H:i:s"). " GMT", 'Content-Type: application/json', 'Authorization: VWS ' .$credentials));
    $json = curl_exec($ch);
    curl_close($ch);
    return $json;
 

}

 

$arr = array("active_flag" => 1);
$content = json_encode($arr);

 

$credentials = createSignature("/targets/".$targetId, "PUT", "application/json",$content);
$result = updateData($credentials, "https://vws.vuforia.com/targets",$targetId, $content);
echo $result;
 
Could it be because I only pass the active_flag argument ?
 
Thanks

Questions for PHP Developers

May 10, 2013 - 11:35pm #27

Try to get something from the below code. It works with me.

 

 

function InsData($img_url, $metadata_url, $target_id){
 
$b64_img = file_get_contents($img_url);
$image = base64_encode($b64_img);
$getmetadata = file_get_contents($metadata_url);
$metadata = base64_encode($getmetadata);
 
    $arr = array("name"=>"test","width"=>320,"image"=>$image , "active_flag" => 1,"application_metadata"=>$metadata);
    $content = json_encode($arr);
 
    $credentials = createSignature("/targets/$target_id", "PUT", "application/json", $content);
    $target = "https://vws.vuforia.com/targets/$target_id";
 
    return updateTarget($credentials, $target, $content);
 
function updateTarget($credentials, $target, $data){
    $date = new DateTime("now", new DateTimeZone("GMT")); 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $target);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt($ch, CURLOPT_HEADER, true);
    curl_setopt($ch, CURLOPT_VERBOSE, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Date: ' .$date->format("D, d M Y H:i:s"). " GMT", 'Content-Type: application/json', 'Authorization: VWS ' .$credentials));
    $json = curl_exec($ch);
    curl_close($ch);
    return $json;
  } 

 

Questions for PHP Developers

May 10, 2013 - 1:14pm #26

DavidBeard wrote:

Do you mean a 401 authentication error ? Are you getting a response from the service?

A 404 would occur if the URL is not found, so check your URL if that's the case.

 

I think my url is correct. Here is the code I use :

 

$arr = array("active_flag" => 1);
$content = json_encode($arr);
$credentials = createSignature("/targets/".$targetId, "PUT", "application/json",$content);
$result = updateData($credentials, "https://vws.vuforia.com/targets",$targetId, $content);

 

So the url seems correct. I also check the targetId I provide is correct, and set to inactive.

Thank you

 

Questions for PHP Developers

May 10, 2013 - 12:51pm #25

Do you mean a 401 authentication error ? Are you getting a response from the service?

A 404 would occur if the URL is not found, so check your URL if that's the case.

Questions for PHP Developers

May 10, 2013 - 12:25pm #24

Hey everyone,

I was able to post data using Curl.

Now I'm trying to update the active_flag attribute of an image target but I get a 404 error.

Does someone could help me please.

 

Thanks

 

Here is my code for the updateData function : 

 

function updateData($credentials, $target ,$TargetID, $data){
    $date = new DateTime("now", new DateTimeZone("GMT"));
    $datetime = $date->format("D, d M Y H:i:s"). " GMT";
    $ch = curl_init();

    curl_setopt($ch, CURLOPT_URL, $target.$TargetID);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("PUT /targets/".$TargetID." HTTP/1.1","Host: vws.vuforia.com", 'Content-Type: application/json','Authorization: VWS ' .$credentials,'DATE: '.$datetime ));
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); 
    $page = curl_exec($ch);
    curl_close($ch);
    return $page;
}
 

 

Questions for PHP Developers

April 23, 2013 - 6:25pm #23

Thank you for this snippet mkaouri it worked for me too!

Cheers

Questions for PHP Developers

April 15, 2013 - 6:25am #22

This php code is working with me:

 

 

<?php
 
$result = InsData();
 
print_r($result);
 
function InsData(){
 
$b64_img = file_get_contents($img_url);
echo $image = base64_encode($b64_img);
echo "<br><br><br>";
 
 $arr = array("name"=>"test","width"=>320,"image"=>$image , "active_flag" => 1,"application_metadata"=>'');
 $content = json_encode($arr);
 
$credentials = createSignature("/targets", "POST", "application/json", $content);
return postData($credentials, "https://vws.vuforia.com/targets", $content);
 
function postData($credentials, $target, $data){
$date = new DateTime("now", new DateTimeZone("GMT")); 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $target);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_POST, TRUE);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
    curl_setopt($ch, CURLOPT_HEADER, true);
    curl_setopt($ch, CURLOPT_VERBOSE, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Date: ' .$date->format("D, d M Y H:i:s"). " GMT", 'Content-Type: application/json', 'Authorization: VWS ' .$credentials));
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $json = curl_exec($ch);
    curl_close($ch);
    return $json;
  } 
 
 
function createSignature($requestPath, $postType = "GET", $contentType = "", $content = ""){
$serveraccesskey='[Your Server Access Key]';
$serversecretkey='[Your Server Secret Key]';
$contentMD5 = md5($content);
$date = new DateTime("now", new DateTimeZone("GMT"));
echo $stringToSign = $postType . "\n" . $contentMD5 . "\n" . $contentType . "\n" . $date->format("D, d M Y H:i:s") . " GMT\n" . $requestPath;
$signature = hexToBase64(hash_hmac('sha1', $stringToSign, $serversecretkey));
$credentials = $serveraccesskey.":".$signature;
return $credentials;
}
 
function hexToBase64($hex){
$return = '';
foreach(str_split($hex, 2) as $pair){
$return .= chr(hexdec($pair));
}
return base64_encode($return);
}
 
?>
 

Questions for PHP Developers

April 13, 2013 - 10:08pm #21

 

$arr = array(
                "name"=>"logo",
                "width"=>$floatnumber, // without ""
                "image"=> $image,
                "active_flag" => 1, // without ""
                "application_metadata"=> '', // $text_file
            );
 
And works for POST targets.

Questions for PHP Developers

March 16, 2013 - 1:57am #20

 

when i am giving the path of image which is in my root folder, then base64 function does not print any thing
$img_url = 'mcdolen.jpg';
 
 $b64_img = file_get_contents($img_url);
 
  echo $image = base64_encode($b64_img);
 "<br><br><br>";
$byte_array2 = file_get_contents('mcdolen_info.txt');
$text_file = base64_encode($byte_array2);
 
the error i m getting is
HTTP/1.1 100 Continue HTTP/1.1 400 Bad Request Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Sat, 16 Mar 2013 08:56:02 GMT Connection: close {"result_code":"Fail","transaction_id":"2da773e9f47e4c4cb53af6fede8dcd6a"}
 
any help??? waiting for an answer..

Questions for PHP Developers

March 11, 2013 - 7:38am #19

 

David sir, thats the code, where i am wrong? plz check it if u get free..thanx..
$result = InsData();
 
print_r($result);
 
function InsData(){
 
//$b64_url = 'php://filter/read=convert.base64-encode/resource='.$img_url;
$b64_img = file_get_contents($img_url);
//$byte_array = file_get_contents('mcdolen.jpg');
echo $image = base64_encode($b64_img);
echo "<br><br><br>";
$byte_array2 = file_get_contents('mcdolen_info.txt');
echo $text_file = base64_encode($byte_array2);
 
 $arr = array("name"=>"tarprueba","width"=>"320.0","image"=>$image , "active_flag" => "1","application_metadata"=>$text_file);
 $content = json_encode($arr);
 
$credentials = createSignature("/targets", "POST", "application/json", $content);
return postData($credentials, "https://vws.vuforia.com/targets", $content);
 
function postData($credentials, $target, $data){
$date = new DateTime("now", new DateTimeZone("GMT")); 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $target);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_POST, TRUE);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_VERBOSE, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Date: ' .$date->format("D, d M Y H:i:s"). " GMT", 'Content-Type: application/json', 'Authorization: VWS ' .$credentials));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $json = curl_exec($ch);
    curl_close($ch);
    return $json;
  } 
 
 
function createSignature($requestPath, $postType , $contentType , $content ){
$serveraccesskey='9f23ed4c8a54333ce35c6e4dcd8361dede1f94fb';
$serversecretkey='77b92c0d1b0e1ce7de0e7ecfeb0eb5fad5db01b8';
$contentMD5 = md5($content);
$date = new DateTime("now", new DateTimeZone("GMT"));
echo $stringToSign = $postType . "\n" . $contentMD5 . "\n" . $contentType . "\n" . $date->format("D, d M Y H:i:s") . " GMT\n" . $requestPath;
$signature = hexToBase64(hash_hmac('sha1', $stringToSign, $serversecretkey));
$credentials = $serveraccesskey.":".$signature;
return $credentials;
}
 
function hexToBase64($hex){
$return = '';
foreach(str_split($hex, 2) as $pair){
$return .= chr(hexdec($pair));
}
return base64_encode($return);
}
 
?>

Questions for PHP Developers

March 11, 2013 - 7:12am #18

hi David,

i added GMT to date bt again getting error below is the error

HTTP/1.1 400 Bad Request Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Mon, 11 Mar 2013 14:02:42 GMT Connection: close {"result_code":"Fail","transaction_id":"2ac50296241e4ae3ad9de8a77dfb5c25"}

Code i m using is below..

$result = InsData();

 
print_r($result);
 
function InsData(){
 
//$b64_url = 'php://filter/read=convert.base64-encode/resource='.$img_url;
$b64_img = file_get_contents($img_url);
//$byte_array = file_get_contents('mcdolen.jpg');
echo $image = base64_encode($b64_img);
echo "<br><br><br>";
$byte_array2 = file_get_contents('mcdolen_info.txt');
echo $text_file = base64_encode($byte_array2);
 
 $arr = array("name"=>"tarprueba","width"=>"320.0","image"=>$image , "active_flag" => "1","application_metadata"=>$text_file);
 $content = json_encode($arr);
 
$credentials = createSignature("/targets", "POST", "application/json", $content);
return postData($credentials, "https://vws.vuforia.com/targets", $content);
 
function postData($credentials, $target, $data){
$date = new DateTime("now", new DateTimeZone("GMT")); 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $target);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_POST, TRUE);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data); 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_VERBOSE, true); 
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Date: ' .$date->format("D, d M Y H:i:s"). " GMT", 'Content-Type: application/json', 'Authorization: VWS ' .$credentials));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    $json = curl_exec($ch);
    curl_close($ch);
    return $json;
  } 
 
 
function createSignature($requestPath, $postType = "GET", $contentType = "", $content = ""){
$serveraccesskey='9f23eda54333cekggc6e4dcd8361dede1f94fb';
$serversecretkey='77b92c0d1b0e1ce7de0kvffeb0eb5fad5db01b8';
$contentMD5 = md5($content);
$date = new DateTime("now", new DateTimeZone("GMT"));
echo $stringToSign = $postType . "\n" . $contentMD5 . "\n" . $contentType . "\n" . $date->format("D, d M Y H:i:s") . " GMT\n" . $requestPath;
$signature = hexToBase64(hash_hmac('sha1', $stringToSign, $serversecretkey));
$credentials = $serveraccesskey.":".$signature;
return $credentials;
}
 
function hexToBase64($hex){
$return = '';
foreach(str_split($hex, 2) as $pair){
$return .= chr(hexdec($pair));
}
return base64_encode($return);
}
 
?>
 

Questions for PHP Developers

March 10, 2013 - 9:59am #17

The date format issue is that you have to use GMT ( e.g. Date: Mon, 23 Apr 2012 12:45:19 GMT ). Take a look at how other developers are formatting their date fields in this thread.

Questions for PHP Developers

March 10, 2013 - 4:21am #16

 

i also get the same error while uploading.

Error:

string(283) "HTTP/1.1 100 Continue HTTP/1.1 401 Unauthorized Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Thu, 28 Feb 2013 22:19:14 GMT {"result_code":"AuthenticationFailure","transaction_id":"60f93e70a4ba464bb2320daa88012d1e"}"

 please can u share the date format issue? 

and the array which you have made for post??

no help yet.. 

 

Questions for PHP Developers

March 9, 2013 - 11:02pm #15

what we will do for status polling..in php?

 

Questions for PHP Developers

March 2, 2013 - 9:12am #14

Hi Ejo

If you are student of software engineering final year, that you havent any problem write code for vws, because in this disccussion is lot of code snippets and a few topic of real problems with api. I dont like lazy people who expect that someone do all work instead of his. You have available complete java code and lot of functional codes in discussion nad when i started develop api, i havent no java samples because link was broken, later signature builder miss in java sample and some functionality missing on vuforia against vws documentation That pls try do something alone and if you will have problem that post some topic with your topic and i try help you i will have time

Questions for PHP Developers

March 2, 2013 - 8:43am #13

plz someone share the code of uploading... we have the same problem, here.. plzz..

 

Questions for PHP Developers

March 1, 2013 - 6:21am #12

hi Sanj, plz can u share the code with us, i am student of software engineering final year, i have to use vws in php,  if u share the image uploading code it would help me alot 

thanks

ejo

Questions for PHP Developers

February 28, 2013 - 3:40pm #11

Yep finally uploaded successfully :-)  

Image is still Processing.....   

Regards,

Sanj

Questions for PHP Developers

February 28, 2013 - 3:26pm #10

Great - so you're now uploading successfully?

Questions for PHP Developers

February 28, 2013 - 3:24pm #9

Hi David,

We managed to fix it.  We discovered date format issues.

Regards,

Sanj

Questions for PHP Developers

February 28, 2013 - 2:36pm #8

Thanks David,

We tried with float as shown below but no joy yet.  Attached is the sample code ()

$response = VMWSHandler::AddNewTarget("sanjay_test", 320.0, "icon-1.png");

Error:

string(283) "HTTP/1.1 100 Continue HTTP/1.1 401 Unauthorized Server: Apache-Coyote/1.1 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Thu, 28 Feb 2013 22:19:14 GMT {"result_code":"AuthenticationFailure","transaction_id":"60f93e70a4ba464bb2320daa88012d1e"}"

 

Kind Regards,

Sanj

Questions for PHP Developers

February 28, 2013 - 9:12am #7

Confirm that your width value is actually a float ( e.g. 100.0 ). That's caused problems for other devs using cURL. If that doesn't solve the problem, please post the snipped of code you are using to compose and format the request.

Log in or register to post comments