hackclub / scrappy

🗑️ the bot that eats trash (and manages #scrapbook)
https://youtu.be/8e0NLxQJ55Y
MIT License
48 stars 38 forks source link

API Route for turning Slack User -> Scrappy username #597

Closed aramshiva closed 1 month ago

aramshiva commented 3 months ago

I would love an API route to get a slack user id and turn it into a scrappy username. It should take in a slack user id in the API url and should contain either the entire user data or just its scrappy username

aramshiva commented 3 months ago

I can work on this myself btw!

JosiasAurel commented 3 months ago

What is the entire user data here? Does that include their scrapbook updates?

aramshiva commented 3 months ago

Data can show the users scrappy username, slack username (confirmation?), the rest can be just found out by a second API call

JosiasAurel commented 3 months ago

a second api call to scrappy?

aramshiva commented 3 months ago

I meant, they would use this just to get the scrappy username and if they would need something like posts they can use the already built in /api/users/[username]. You don't need to provide that much info in this API request

JosiasAurel commented 1 month ago

@aramshiva what's the status on this?

aramshiva commented 1 month ago

I haven't been able to get this done yet. I probably wont in the near future unless I stop procrastinating.

JosiasAurel commented 1 month ago

I'll go ahead and close this for now. Note that right now we have an api for listening to scrapbook updates (which includes the poster's username). If you still need this particular feature please re-open.