Example PHP file.

This commit is contained in:
4026 2017-12-04 13:45:13 +01:00
parent aea4cc6fed
commit 6a369095c5
1 changed files with 21 additions and 0 deletions

21
example.simple.php Normal file
View File

@ -0,0 +1,21 @@
<?php
$post = [
'list' => 23,
'name' => 'Subscriber John',
'email' => 'john@subscriber.aa',
'activated' => 1
];
$ch = curl_init('http://hirlevel.sandros.eu/a/subscribe?key=f953d4b526fdffda0d58bcd39fbbab29800f31ec8c6bcff53af359cd6528337e5bda05f3faf3f2beef4fb1cc8eeee906be67d6bc7c4b04af61dfc239d6b079e1');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
// execute!
$response = curl_exec($ch);
// close the connection
curl_close($ch);
// lets see
var_dump($response);