Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

way to look up PM ID #14

Closed
33mhz opened this issue Jan 18, 2017 · 2 comments
Closed

way to look up PM ID #14

33mhz opened this issue Jan 18, 2017 · 2 comments
Milestone

Comments

@33mhz
Copy link
Contributor

33mhz commented Jan 18, 2017

The way PMs are handled, I can't look up the ID of a PM between me and other people unless I know the ID of the channel (if it exists). If it's not in the first 20 (or first 200) channels I'm subscribed to, or something similar, it can be hard to find out if a channel exists already. It would be convenient to be able to look that up.

Submit a list of user_ids/@-usernames and return the existing PM channel_id if it exists.

@33mhz
Copy link
Contributor Author

33mhz commented Feb 6, 2017

URL like so: https://api.pnut.io/v0/users/me/channels/existing_pm?ids=1,4,@33mhz,53

Will return the channel if it exists, or a 404 otherwise. Returns 404 if one of the users is blocked.

@33mhz 33mhz added this to the 0.4.5 milestone Feb 28, 2017
@33mhz
Copy link
Contributor Author

33mhz commented Mar 4, 2017

Implemented.

@33mhz 33mhz closed this as completed Mar 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant