XenForo Help with rest api

C

canina

Guest
I have the forum in version 2.1.12.
I am trying to access using the rest api and without success.

(I want to respond to threads)

I have this code - but there is a 404 error.
PHP:

Code:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$apiKey = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
$threadId = 1; // ID of the thread you want to add a post to


// Set the API endpoint URL
$endpoint = 'http://164.23.456.70/index.php?api/threads/' . $threadId . '/comments';
// Set the API key and API secret...

Read more

Continue reading...