Project

General

Profile

Is it possible to use bindings which we can use in TCLMT?

Igor Khomenko
Added almost 4 years ago

Is it possible to use bindings in HTTP API scripts which we can use in TCLMT?


Replies (6)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 4 years ago

I'm not sure about what bindings you are talking here but I would say it is rather not possible as HTTP API do not depend on TCLMT.

Could you clarify what bindings from TCLMT you would like to use in HTTP API?

Added by Igor Khomenko almost 4 years ago

Here is what I mean

https://projects.tigase.org/projects/tigase-muc/repository/revisions/master/entry/src/main/groovy/muc/admin/room-remove.groovy

it's possible to use mucRepository binding here

can I have an access to mucRepository in HTTP API scripts?

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 4 years ago

No it is not possible to have access to mucRepository as mucRepository is only available inside MucComponent while HttpComponent is separate component and do not have access to internal variables of MucComponent.

Also script to which you pointed is not script for TCLMT but it is implementation of AdHoc command for MucComponent and this is why it has access to MucComponent internals (ie. mucRepository binding).

Added by Igor Khomenko almost 4 years ago

Ok,

so you mean the same is possible inside HTTP API component?

I mean use AdHoc commands

Added by Igor Khomenko over 3 years ago

Andrzej, please let me know can I run this AdHoc command https://projects.tigase.org/projects/tigase-muc/repository/revisions/master/entry/src/main/groovy/muc/admin/room-remove.groovy

using HTTP API

If yes - what steps should I do?

thank you

Added by Igor Khomenko over 3 years ago

Ok, I found it here

https://projects.tigase.org/projects/tigase-http-api/wiki/Usage_examples

this is what I need, thanks!

    (1-6/6)