Skip to content

Commit

Permalink
added a sample php script. included the jquery ui css in the plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
amin0_000 committed Sep 24, 2014
1 parent 46ffa1b commit 79f33e5
Show file tree
Hide file tree
Showing 5 changed files with 1,385 additions and 157 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

// Post URL
$postURL = "http://localhost:81/wp/wp7";
// The Secret key
$secretKey = "541fc9967d4b43.07908805";
$firstname = "John";
$lastname = "Doe";
$email = "john.doe@gmail.com";

// prepare the data
$data = array ();
$data['secret_key'] = $secretKey;
$data['slm_action'] = 'slm_create_new';
$data['first_name'] = $firstname;
$data['last_name'] = $lastname;
$data['email'] = $email;

// send data to API post URL
$ch = curl_init ($postURL);
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$returnValue = curl_exec ($ch);

// Process the return values
//var_dump($returnValue);
Loading

0 comments on commit 79f33e5

Please sign in to comment.