Hiya,
I have split this up into what I am trying to do and the issue it's self for people who wanna jump straight to the issue or want to read on what I
am trying to do first.
what I am trying to do:
I have been recently making a program for our work to intergrate our product stock to our website from crm, upon searching around in SugarCRM I noticed a convinient tool that allowed us to export all of our products (ProductTemplates) into an excel file through a POST request, I replicated this post request in python requests which worked great however I was confused when it all of a sudden didn't work to find that the link (specifically the ID) of the document kept changing, upon seeing this I re analysed for different options and noticed there was a POST request for a "record list" for all of our products which contains requests paramaters for a set of ID's (which I am guessing are sets of products) which returns from the server a single ID to export the excel file
the issue:
The Issue I am having is that when I try to use a post request to get the "record_list" which contains the Main ID needed to get all of our product templates to export them I get the error "No valid authentication for user" even when I have provided the cookie that was given at the time of logging in, I have also tried sending over the login payload again with the following payload {"username": "hidden", "password": "hidden", "client_id": "sugar", "grant_type": "hidden" "client_secret": hidden,"platform": "base"} having no luck with it still saying there is no valid authentication for user (note I am certain the token has not expired as the program it's self takes 10 seconds from login to POST request for record list), this leads me to believe that there is paramaters that I am msising or that are just wrong. If you have any ideas on what I am doing wrong, please let me know.
Thank you for taking your time to read my question.