def get_product_data():
payload = {
'product_ids': ''.join(
[line.strip() for line in open('id.json', 'r')]
)
}
f = requests.get('https://example.com./v2/product/getDetails?', params=payload)
d = f.json()
return d