Siddu Hussain
05/07/2024, 11:52 PM{
"billable_info": {
"U0632EWRW": {
"billing_active": false
},
"U02UCPE1R": {
"billing_active": true
},
"U02UEBSD2": {
"billing_active": true
}
}
}
I have another endpoint that gives a gzip file as a response is there a way to unzip it and parse using meltano.Reuben (Matatika)
05/07/2024, 11:59 PMSiddu Hussain
05/08/2024, 1:01 AMSiddu Hussain
05/08/2024, 1:04 AMReuben (Matatika)
05/08/2024, 3:44 AMtap-auth0
handles gzip content in `parse_response`: https://github.com/Matatika/tap-auth0/blob/76f6909613160bd4074f9bee8480436defeba068/tap_auth0/streams.py#L81:L86Siddu Hussain
05/08/2024, 5:05 AMEdgar Ramírez (Arch.dev)
05/08/2024, 6:41 AMaddiadditional_properties
parameter: https://sdk.meltano.com/en/v0.37.0/typing.htmlvisch
05/08/2024, 1:03 PM"billable_info": [
{
"user_id": "U0632EWRW",
"billing_active": false
},
{
"user_id": "U02UCPE1R",
"billing_active": true
},
{
"user_id": "U02UEBSD2",
"billing_active": true
}
]
As someone in your transformation side is going to have to do this anyway. I try really hard to avoid doing this kind of thing but here's an example of one https://github.com/AutoIDM/tap-zohosprints/blob/main/tap_zohosprints/tests/tag_property_unfurl.json
Test https://github.com/AutoIDM/tap-zohosprints/blob/main/tap_zohosprints/tests/test_core.py#L42
And code https://github.com/AutoIDM/tap-zohosprints/blob/52dc10d6912b74897ca5d62c55aa4ddd0b5fb333/tap_zohosprints/client.py#L201
Hope that helps!