Add PHP API
-
@sergej-saveljev Don't bother, use this write api instead
Let me know what endpoints you need.
-
Cool! I certainly reading!
Until I not find how to create categories.Is it possible to make the url topics were not in the form id categories? To use the category names. To make them more friendly for search systems.
-
I need it class methods for create complex structure, based on the data site.
Categories are highway subcategories are villages in which users of the forum will create your own posts. That is the work of the categories is particularly important.
-
@julian link in github readme https://community.nodebb.org/api/topic/687/help-translate-nodebb/2 not work
-
@julian Is it possible now with the API to create a category?
-
-
-
Thanks! But i have problems. I not understand how run curl command. Please, tell me how you would use them. Run in linux terminal:
curl -H "Authorization: Bearer {fb66eb42-8206-475e-fsdg-7ddabde551e5}" --data "title={Test post}&content=={Content test post}&cid={1}" http://localhost:4567/api/v1/topics
Output:
Forbidden
-
In top code hidden {2} in value cid. Markdown is hiding.
-
@julian said:
- No curly braces.
- Encode your post body data
curl -H "Authorization: Bearer fb66eb42-8206-475e-fsdg-7ddabde551e5" --data "title=Test%20post&content=Content%20test%20post&cid=1" http://localhost:4567/api/v1/topics
Forbidden
-
I tried user token and master token
-