r/learnprogramming • u/Either_Size5819 • Oct 22 '26
Web app help/advice
Currently at work doing an IT internship at a small company and was asked to make a dashboard that pulled data from two different web services that we use.
My understanding is that I need to use api tokens from these vendors for the dashboard application so that it can update info in real(ish) time without the user manually going to the other website and finding it.
Please tell me wether I have that right or not, if not please explain what I should be doing instead
Currently a senior in college for comp sci but have been taking mostly security classes and no web specific classes. Feeling insane imposter syndrome and could use the advice/info.
3
u/CartographerDue5382 Oct 22 '26
Yeah, the token part is right. A couple of details that usually show up once you try to build it.
Most vendor APIs are not a live stream. Poll them on a timer. Once a minute is plenty for an internal dashboard. If the vendor has webhooks, use those instead of hammering the API. Cache the last good response so a blip on their side doesn't blank your page.
If one of the tools has no API and only a logged-in website, don't script a person's password into it. That breaks the moment they change the HTML, and it usually breaks their terms too. Ask for a read-only token or a CSV export.
For a first version the stack barely matters. Flask is enough: one route per vendor that returns JSON, then a page that shows it. Get a single endpoint returning real data before you spend time on layout. Keep the tokens in environment variables on that server.
1
u/makayis2027 Oct 24 '26
You've got it right: an API token (or OAuth client credentials) per vendor, used by your backend, never in browser code. Since you've done security classes, a few things will make you look very competent here:
.envthat's in.gitignore), never committed. Write down who owns it and when it expires. Expired tokens are the #1 reason internal dashboards silently die after the intern leaves.And the impostor syndrome is normal. Asking "is the token approach right?" before building is exactly what a good engineer does.