Activate template from outside

Parra

Новичок
Регистрация
27.03.2018
Сообщения
25
Благодарностей
3
Баллы
3
Hello,

I'm beginning in ZennoPoster and have one question...
I need to activate a template by an external action and pass a parameter.
Should be something lika a get. Example: http://my_ip:8080/action?10000
The template would take this parameter and access some pages and post the result to an external API.

I can do all, except the beginning...

Is it possible to do something like this ??
How can I do it ??

Thanks
Marcello
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 810
Благодарностей
1 187
Баллы
113
Hello,

I'm beginning in ZennoPoster and have one question...
I need to activate a template by an external action and pass a parameter.
Should be something lika a get. Example: http://my_ip:8080/action?10000
The template would take this parameter and access some pages and post the result to an external API.

I can do all, except the beginning...

Is it possible to do something like this ??
How can I do it ??

Thanks
Marcello
Not very clear what you want to do, but you can make zennoposter to check DB some table some cell. and do whatever you need according.
 

Parra

Новичок
Регистрация
27.03.2018
Сообщения
25
Благодарностей
3
Баллы
3
Thank you for your reply...

I need the template to perform an action by demand.... This should be triggered by outside....

This DB idea is OK.... But another question.... What is the best way to make it stay in a loop ??? Schedule with 1 minute interval ??
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 810
Благодарностей
1 187
Баллы
113
Thank you for your reply...

I need the template to perform an action by demand.... This should be triggered by outside....

This DB idea is OK.... But another question.... What is the best way to make it stay in a loop ??? Schedule with 1 minute interval ??
Yes make one template lets call it Trigger Template.xmlz
Then schedule it to run every minute or just set to run in a loop. Set one thread and execution -1
This template will check your DB for any needs.
From this Trigger template, you can further start any other template you want.
You can start 10 templates if you want.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)