[RSS Feed/News] Help with rest api

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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 403 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://123.45.678.70/index.php?api/posts/';
// Set the API key and API secret
$key = $apiKey;

// Set the...

Read more
Read more about this Feed . . .
 
Status
Not open for further replies.
Back
Top Bottom