bluetorchconsulting / simple-social-media-directory

Get the top social media networks as a collection.
https://mikes-simple-social-media-directory.replit.app/api/social-networks
MIT License
0 stars 0 forks source link

ability to set platform username #1

Open mikerouse opened 2 days ago

mikerouse commented 2 days ago

In its current form the API will provide links to the social networks, with the web developer having to put the profile names on the end of each platform (e.g. x.com/mikerouseuk), but it is not possible to know which username goes with the platform inside the loop. It's fine if the handle is the same for each platform, but if there are different handles then we have a problem.

What are the options? Please post a comment with any suggestions.

mikerouse commented 2 days ago

We could require the caller to send us a JSON of their account handles, which our software then appends to the appropriate social network URL before sending the collection back to the caller. This would have to use the ID of the social network, not the name (because the name might change). For example '1':'mikerouseuk','2':'mikerouse' and so on.