I need to receive user input and then send it to an API endpoint located in the services section, however the services section must be transformed into a library. How can I accomplish this data transfer without constantly updating the library or inserting hardcoded values into it repeatedly?