XenForo API request returning File Not Found

N

notatardis

Guest
New to the API requests, but I'm trying to set up a test run for creating a new conversation using cUrl in php and a super user api key.

PHP:

Code:
<?php

// API endpoint URL
$url = 'https://***.com/site/api/conversations';

// API key
$api_key = '****';

// Recipient IDs
$recipient_ids = [663];

// Conversation title
$title = 'API Test';

// Conversation message body
$message = 'Testing the API';

// Data to be sent in the request
$data = [
    'recipient_ids' => json_encode($recipient_ids)...

Read more

Continue reading...