API for Nabble 2

classic Classic list List threaded Threaded
27 messages Options
12
Reply | Threaded
Open this post in threaded view
|

RE: API for Nabble 2

Gisle Hannemyr

As I've said, the API works fine, both for adding and for removing users.

However I've noticed that removing users via the ordinary GUI does not work.

I'm talking about Options->users->Who can view and post, and then clicking Remove user.

The user disappears from the list, but when you refresh the screen, the user you just deleted is back. Not a problem for me (I'm happy with using the API to manage membership in my private group) - but maybe others prefer the GUI?

Reply | Threaded
Open this post in threaded view
|

RE: API for Nabble 2

Hugo <Nabble>
Note that there is a "Save Changes" button at the bottom. The user must click on it to save the new list of users. We could have implemented a process that keeps going to the server, but this would be too slow if the user wants to add and remove several users at once. So we rely on javascript before saving the changes. But your concern is valid and we will implement a confirm dialog if the user leaves the page without saving the changes.

Thanks,
Hugo Teixeira
Nabble.com
Reply | Threaded
Open this post in threaded view
|

RE: API for Nabble 2

Gisle Hannemyr
Hugo <Nabble> wrote
Note that there is a "Save Changes" button at the bottom.
Ok. My bad.
Reply | Threaded
Open this post in threaded view
|

RE: API for Nabble 2

Leigh L. Klotz Jr WA5ZNU
In reply to this post by Hugo <Nabble>
Hugo <Nabble> wrote
Hi guys,

We have implemented this feature and now you can integrate Nabble with your system.
The URL is:
http://n2.nabble.com/rest/PrivateAuthorization.jtp?forum=<id>&owner=<owner-email>&password=<owner-pwd>&action=<add-or-remove>&user=<user-email>

Parameter information:
    forum = ID of the forum;
    owner = Email of the forum owner;
    password = Value found in your "password" cookie;
    action = either "add" or "remove";
    user = Email of the user you want to handle.

We may add SSL in the future, but this is what we can have for now.
Please let me know if you have questions, comments or concerns.

Regards,
Hugo Teixeira
Nabble.com
Do you have a REST interface for moving messages between sub-forums?
Thank you,
Leigh.
Reply | Threaded
Open this post in threaded view
|

RE: API for Nabble 2 - REST interface updated

Hugo <Nabble>
In reply to this post by Hugo <Nabble>
The URL of this interface has changed. So please update your system to use the one below:

URL Format
http://<site-domain>/template/TplServlet.jtp?tpl=rest_group_control&owner=<owner-email>&password=<owner-pwd>&user=<user-email>&action=<add/remove>&group=<group-name>

Parameters
    site-domain = The domain of your Nabble app (e.g., "abc.123.n2.nabble.com")
    owner-email = Email of the app owner;
    owner-pwd = Value found in your "password" cookie;
    user-email = Email of the user you want to handle.
    action = either "add" or "remove";
    group-name = The name of the permission group that the user should be added/removed to/from.
Reply | Threaded
Open this post in threaded view
|

RE: API for Nabble 2 - REST interface updated

c8apps
Hi Hugo,

We are new users and love you and your teams work!! Keep it up!

We have having some troubles with the above URL API. We keep getting 404 when attempting to access it.

We are hoping to use the forum as an embedded forum in a FB game and when the user signs up to the game, also create them an account on the forum.

Could you please PM me an example of how the URL could look like or let me know any things I'm potentially doing wrong?

Thanks,
Charles
Reply | Threaded
Open this post in threaded view
|

RE: API for Nabble 2 - REST interface updated

colmena.dev
In reply to this post by Hugo <Nabble>
Hi hugo,

Any update about this, I get error 404 when try to access the URL...

Thanks...
12