![]() We’re able to trigger a notification that can be sent via email or can be sent to a Teams channel. By using a condition in the flow, we can filter out the expiring client secrets based on the end date. Because of that array, we need to initialize some variables to grab the required information to further process it in our flow. The client secret information is available in an array. This information holds the end date from the underlying client secret. Via Graph API we’re able to get information on the App Registrations in our Azure tenant. So of course I came with the idea to solve this issue with a Logic Apps flow (again) as the information about the end date of the client secret is available via Graph API. I would like to get a notification a few weeks before one of these secrets will expire, but I don’t see an out-of-the-box solution for this. But these client secrets expire once in a while which causes my flows to stop working if I don’t replace them before the expiring date. To authenticate with these App Registrations I use client secrets. I use some App Registrations in Azure, for example, to use in my Logic App flows. ![]() ![]() So when replacing image_url as "abc.jpg" or "C:/abc.jpg", it didn't work.Today another blog post that involves Logic Apps. Image = Image.open(BytesIO(requests.get(image_url).content)) # Display the image and overlay it with the caption. # relevant caption for the image is obtained from the 'description' property. # The 'analysis' object contains various fields that describe the image. Response = requests.post(analyze_url, headers=headers, params=params, json=data) "Broadway_and_Times_Square_by_night.jpg/450px-Broadway_and_Times_Square_by_night.jpg" # Set image_url to the URL of an image that you want to analyze. The original working code is below: import requestsĪnalyze_url = vision_base_url "analyze" : 400 Client Error: Bad Request for url: Raise HTTPError(http_error_msg, response=self) ![]() ![]() It is working with using image_url as " ", but when I change to my local image "abc.jpg", it is have an error.įile "C:\Python27\lib\site-packages\requests-2.19.1-py2.7.egg\requests\models.py", line 939, in raise_for_status I am trying to write a python program on Pi to capture an image and get the description from Ms Computer Vision API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |