I'm trying to write a python script that will help me with a project that I'm working on and I'm confused about what to do after I've logged into the APIC (stored my APIC-Cookie that I get in the initial login prompt). On subsequent requests, using the requests module, how do I include the session cookie? Do I format that in JSON and pass it as payload? Do I put it somewhere in a header?
What would a subsequent request look like (for instance, if I wanted to return all of the interfaces - operational status, description, epgs, etc - from a specific leaf).