Why won't this add a user via the API?

P

PPC Coach

Guest
Member
Here's my code:
<?php
define('XENFORO_API_KEY', 'my_API_key_here');
define('XENFORO_BASE_URL', 'https://members.printondemandcoach.com/api');

$url = XENFORO_BASE_URL . '/users';
$data = [
'username' => 'testuser',
'email' => '[email protected]',
'user_group_id' => 2
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [...
Click to expand...

Read more
Why won't this add a user via the API?

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    Fuck-Skidders.Club @ Fuck-Skidders.Club: I've been waiting for over a week
    Top