Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене

Hi there,


im just trying to create a automate trigger that makes a api call (or maybe webhook call) with a defined body. I want to trigger a build in TeamCity with help of the Rest API. 

The Rest API awaits a defined body with a authorisation header:

{ "buildType": { "id": "buildConfID" } }


with a webhook call i can only use a predefined body. 

When i try to execute python code with the module requests, it also wont work. 

Reason: import is blocked from save_eval

and if i modify the safe_eval to not block import, i still get another error:

AttributeError: 'NoneType' object has no attribute 'post'


at requests.post.


Maybe anyone has an alternative way or maybe an idea how to fix that?


Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лип. 25
2586
3
лип. 25
428
1
лип. 25
114
1
черв. 25
1927
1
лип. 25
906