Sorry about that, I'm working on documenting (and rewriting) everything.First off, let me say GREAT addon!
Is there a way to Move Threads using this?
EDIT: It is undocumented, but this moves threads successfully:
Code:api.php?action=editThread&thread_id=THREAD_ID&hash=API_KEY&grab_as=USERNAME&node_id=NEW_NODE_ID
Sorry about that, I'm working on documenting (and rewriting) everything.
Glad you managed to figure it out yourself!
Glad you found it useful !No need to apologize! This API is awesome and has helped me tremendously.
This may be of interest to you: https://xenforo.com/community/threads/interest-in-a-xenforo-specific-iphone-android-app.90003/With the massive amount of our user's dissatisfaction with Tapa Talk's new upgrade and there being no real alternatives out in the market, we're thinking of rolling our own app. I'm wondering if the XenAPI would work well for this sort of thing? Any thoughts on that?
Ray
This addon is capable of that, just grab from a specific node/forum.Hmm, will keep an eye on that. Our thinking, however, is to have a more fully integrated app, ie. with not only the forums but also our articles, podcasts, videos, etc. so it's a one stop shop for our website.
Ray
What do you mean by "moderation" stuff? As in grab the moderation queue?Great, thanks! Can't remember, does the API also have hooks for moderation stuff?
Yes, you can delete threads/posts/users and move threads/posts.Sorry, as in moderating threads, posts -- deleting, moving, etc. the usual sort of thing that comes with moderating a forum.
Ray
Change the text 'REPLACE_THIS_WITH_AN_API_KEY' to your desired API key on line 20 of api.php.why am I getting this
{"error":17,"message":"The API key has not been changed, make sure you use another API key before using this API"}
thank youChange the text 'REPLACE_THIS_WITH_AN_API_KEY' to your desired API key on line 20 of api.php.
Yes.I would like to use this api to search through my forum, but unfortunately I'm not sure how I can do this. Is there a "search" action available like
api.php?action=search @Contex ?
api.php?api_key=API_KEY&action=search&value=test
api.php?api_key=API_KEY&action=search&value=test&order=ASC&type=thread
api.php?hash=API_KEY&action=search&value=test
[
{
"type": "post",
"data": {
"post_id": 2,
"thread_id": 1,
"user_id": 1,
"username": "Contex",
"post_date": 1421756007,
"message": "test",
"ip_id": 10,
"message_state": "visible",
"attach_count": 0,
"position": 1,
"likes": 0,
"like_users": "a:0:{}",
"warning_id": 0,
"warning_message": "",
"last_edit_date": 0,
"last_edit_user_id": 0,
"edit_count": 0,
"message_html": "test",
"absolute_url": "http:\/\/xenapi.net\/index.php?posts\/2\/"
}
}
]
more questions:
Any guidance or suggestion for securing js app would be helpful.
- The hash code it generates. When doe it expires?
- I am trying to create a javascript app with this. How can I make it secure?
- I guess if you lose your hash code, you are dead. Right?
Thanks.
$response = $xenAPI->login($username, 'secret', $ip_address);
// Return True but account not online.
We use essential cookies to make this site work, and optional cookies to enhance your experience.