Hello all,
I have an API request related challenge that I hope to get help on from this forum.
I am using the tap plugin tap-rest-api-msdk.
A requirement is that in a header, there is a dictionary for Conversation_id, currently set to a hard-coded value. However I need to generate unique IDs for this and for every request that is being sent. This would form part of the header config. Config section in yml would look like below just for context.
- name: tap-my-inherited-tap
inherit_from: tap-rest-api-msdk
config:
auth_method: oauth
grant_type: client_credentials
headers: '{"ConversationID": "62da4108-67a1-4c0a-b20c-8e454420798e",..............}
What would be the best way to generate unique IDs for this conversation ID and define as a variable?
Something along the lines of being able to generate uuid from python uuid and assign it to each call in the header.
Im new to this whole thing, python, meltano, api et all, so please respond keeping that in mind, much appreciated.
import uuid
unique_id = uuid.uuid4()