[RSS Feed/News] Trying to create a post from an external application via REST API is timing out

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I'm in the process of testing out the API locally and as a first step I'm struggling to create a post in a thread. I've set up the thread:write scope on the API key from the ACP.

So, I put the following in a php file and upon running it, the request is timing out.
PHP:

Code:
function execute_curl($url, $data) {
    
    $curl = curl_init();
    $data_encoded = json_encode($data);
    curl_setopt($curl, CURLOPT_URL, $url);   
    curl_setopt($curl, CURLOPT_POSTFIELDS...

Read more

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