Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m frustrated

How to update code using phonegap api?

Hello There,

I am using phone gap api+php to make apps dynamically. I am using php's curl library for this. The code is as follows:

$ch = curl_init();

$localFile = '@www_events/apps/abhi.zip';

$target_url = "https://build.phonegap.com/api/v1/app...;

curl_setopt($ch, CURLOPT_PUT, TRUE);

curl_setopt($ch, CURLOPT_POSTFIELDS, array('file'=>$localFile));

curl_setopt($ch, CURLOPT_URL, $target_url);

$result = curl_exec($ch);

curl_close ($ch);

From the above code, I am not able to update the new code. Its only rebuild the old code. How can i upload the latest code using file based create method

Please help me in this issue.

Regards
1 person has
this problem
+1
Reply