I didn’t choose any triggers for now and continued to the configuration page.
#How to use confluence rest api zip file
zip contents of the folder and create a zip file in a parent directoryĪnd we are ready to deploy to AWS! Start with creating a new Lambda Function and selecting a blank function for this job. create and copy the code above into poster.py touch poster.py Now, I needed to package the code to make it ready to deploy: # 1.
json (), indent = 4, sort_keys = True ) return response. dumps ( payload ), headers = headers, auth = ( "myUserName", "mySecretPassword" )) print json. The first take on that problem was a simple Python script: import json import requests url = "" headers = response = requests. I should write a program automating it!”. So, I thought: “I spend a lot of time on this task. In this case, I was interested in posting new content with some text, and I was getting tired of doing that manually every week. This is because we use blog posts in Confluence for announcing our weekly volunteer meetings and as a simple attendance management.Ĭonfluence, a team collaboration software written in Java and quite often used in corporate environments, offers a REST API that makes it possible to perform many operations on the content. In my case, I needed something that could post to our Confluence instance at a specific time every week. Some mundane tasks can easily be automated. How do you automate a job without setting up a dedicated machine?
Field notes automation cloud python english