https://surveyfunnel.io/api/v1/payplan/register
post
sig
: Secret signature for authentication
first_name
: (required) Users first namelast_name
: (required) Users last nameemail
: (required) User emailpassword
: (required) User passwordpassword_confirm
: (required) Repeat passwordgroup_name
: Name of the group you want to put user in.email_additional_html
Base 64 encoded HTML will be added at the end od activation email
Create a new user in "Ryan Client" group using Guzzle 4 library
require "vendor/autoload.php";
use GuzzleHttp\Client;
$client = new Client();
$response = $client->post('https://surveyfunnel.io/api/v1/payplan/register', [
'headers' => ['sig' => 'secret_signature'],
'body' => [
'first_name' => 'Mike',
'last_name' => 'Josh',
'email' => '[email protected]',
'password' => 'my_pass',
'password_confirm' => 'my_pass',
'group_name' => 'Ryan Client'
]
]);
Create a new user in "Ryan Client" group using curl
$ch = curl_init();
$params = [
'first_name' => 'First',
'last_name' => 'Last',
'email' => '[email protected]',
'password' => 'my_pass',
'password_confirm' => 'my_pass',
'group_name' => 'Ryan Client'
];
$postURL = 'https://surveyfunnel.io/api/v1/payplan/register';
curl_setopt($ch, CURLOPT_URL, $postURL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('sig:secret_signature'));
// Remove this when on production
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
https://surveyfunnel.io/api/v1/payplan/cancel-user
post
sig
: Secret signature for authentication
user_email
: (required) User email addresscurrent_user_group
: (required) Current group for this user