Could you enable debug in /library/config.php, $config['debug'] = 1;For some reason when I try to register a user (using the example) I get an unexpected database error. I have tried removing customs fields and certain requirements (making everything the defaults) and it still is not working for me.
<!-- Mysqli statement execute error : Field 'taigachat_color' doesn't have a default value -->
Seems like some addon author have been sloppy with their database fieldsAfter posting that I just remembered that I could View Source of the database error page. Turns out there was a conflict with TaigaChat Pro shout box. Even just "disabling" this addon would throw a database error. After uninstalling it, however, everything work flawlessly. The error I was getting is below:
Seems like that slipped past this update, I'll add it in the next update, sorry about that!saw that u added getThreads for a node id ... possible to get list of nodes ?
Seems like that slipped past this update, I'll add it in the next update, sorry about that!
I'll try to release 1.3.1 with getNode and getNodes actions sometime today.just hacked to have that node list, cos i need it, until you release the next version ...
but, on the whole, u made my day![]()
Added two new actions that were missing in the 1.3 update:
- getNode, allows to grab a specific node and get the information about the specific node.
- getNodes, allows to grab a list of nodes, it's also possible to grab specific...
I'll add that later today when I get home from work.What about creating threads or posts?
By thread content, do you mean the first post of the thread?getThread seems to not get the thread content.
I assume you would do that through the getPost method. Since I want the thread content, is it possible to get posts that have a position of 1, and come from a certain specific node. That would essentially make it so I get the 5 latest threads from let's say the Announcements forum.
api.php?action=getThreads&hash=API_KEY&node_id=4&grab_content
api.php?action=getThreads&hash=API_KEY&node_id=4&grab_content&post_limit=10
I'll add that later today when I get home from work.
By thread content, do you mean the first post of the thread?
I could create a "grab_content" parameter, which would grab the content of the first post in the thread, like so:
Code:api.php?action=getThreads&hash=API_KEY&node_id=4&grab_content
I could also make it so you could grab a specific amount of posts (0 being all the posts in the thread).
Code:api.php?action=getThreads&hash=API_KEY&node_id=4&grab_content&post_limit=10
Thoughts?
I'm working on a rewrite of the code, to make it easier to add custom actions, Single Sign On, real RESTful API (current code is a workaround), and much more.
That should already be possible by using the "order_by" parameter with "post_date" and using the "limit" parameter, like so:What about specifying how many threads to get in the parameters?
Lets say get 5 of the latest threads in the node_id 4 with their messages as well, as in their content.
api.php?action=getThreads&hash=API_KEY&node_id=4&order_by=post_date&order=desc&limit=5
api.php?action=getThreads&hash=API_KEY&node_id=4&order_by=post_date&order=desc&limit=5&grab_content
api.php?action=getThreads&hash=API_KEY&node_id=4&order_by=post_date&order=desc&limit=5&grab_content&content_limit=10
Should now possible with the last two commits:What about specifying how many threads to get in the parameters?
Lets say get 5 of the latest threads in the node_id 4 with their messages as well, as in their content.
Should now possible with the last two commits:
https://github.com/Contex/XenAPI/commit/494ecc0e9f4cc7056329aded84e2b6e2a8b3dd2e
https://github.com/Contex/XenAPI/commit/91834d71deebf1a82e64a9268a9c823cf5907ab6
Could you try it out and see if it's what you were looking for?
Dev branch can be found here: https://github.com/Contex/XenAPI/blob/dev/net/xenapi/XenAPI/api.php
api.php?action=getThreads&hash=My_API_Key&node_id=4&order_by=post_date&order=desc&limit=5&grab_content&content_limit=1
We use essential cookies to make this site work, and optional cookies to enhance your experience.