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

Improve response for channels #1

Open
Tmw opened this issue Jul 14, 2017 · 0 comments
Open

Improve response for channels #1

Tmw opened this issue Jul 14, 2017 · 0 comments

Comments

@Tmw
Copy link
Contributor

Tmw commented Jul 14, 2017

As discussed with @jchn we should prettify the response from our API for the GET /pins. It should include a selected default channel_id as well as an array with the channels available under the account. Example:

{
  "default_channel_id" : "CXYZAABCDIEO",
  "channels" : [
    {"name": "announcements", "channel_id": "CAIUEMDU"},
    {"name": "general", "channel_id": "CXYZAABCDIEO"},
    {"name": "gifs", "channel_id": "CAIUEMDR"},
    {"name": "bootcamp", "channel_id": "CAIUEMDL"},
    {"name": "development", "channel_id": "CAIUEMDP"}
  ]
}

Any thoughts, @jchn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant