October 22, 2024
Chicago 12, Melborne City, USA
PHP

Does anyone have a working xenforo Resources API?


I’m trying to develope a custom app for my xenforo forum. I want to post new resources with the xenforo API but I keep getting an error.

Here’s my request data:

​{

 "alt_support_url": "",

 "currency": "",

 "custom_fields": {},

 "external_url": "https://drive.google.com/uc?export=download&id=103m0k6ST1il0PyJGb72BFR_NlDiW5gY2",

 "is_watching": true,

 "prefix_id": 0,

 "price": "0.00",

 "resource_category_id": 149,

 "resource_state": "visible",

 "resource_type": "download",

 "download_url": "https://drive.google.com/uc?export=download&id=103m0k6ST1il0PyJGb72BFR_NlDiW5gY2",

 "tag_line": "Test",

 "tags": [],

 "title": "Test reasourse api",

 "description": "Posted from an API.",

 "user_id": 51,

 "username": "Adam"

}​​​


And this is the response:

{
  "errors": [
    {
      "code": "xfrm_please_select_valid_resource_type",
      "message": "Please select a valid resource type.",
      "params": []

    }
  ]
}

I’ve tried resource type = "download" & "link" but none of them work. In the xenforo database the Resource type is indicated as download, why doesn’t it work?.

Anyone know what I’m missing?

I ran a post request to my xenforo instance expecting to publish a resource with the xenforo API but I keep getting this error



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video