[RSS Feed/News] issues with API and Curl PHP

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hello,

I'm have troubles creating a thread with Xenforo API via CURL in PHP.
Here's my code :

Code:

Code:
$sUrl = 'https://mydomain.com/api/threads/';

        $aData = [
                    'node_id' => 13,
                    'title' => 'test title',
                    'message' => 'test message'];

        $headers = ['Content-type: application/json',
        'XF-Api-Key: ' . self::$_sApiKey,
        'XF-Api-User: 1',
        'Content-Length: ' . strlen(json_encode($aData))];



        $ch =...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom