Example PHP file.
This commit is contained in:
parent
aea4cc6fed
commit
6a369095c5
21
example.simple.php
Normal file
21
example.simple.php
Normal 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);
|
Loading…
Reference in New Issue
Block a user