Hi Phil, I have a question related to APIs, what is the best way to filter data by the attributes, does the API allow that or just returns a list (all channels, all users, etc) that I have to manually filter?
I'm a developer, product manager and public speaker based in the SF Bay Area. I'm passionate for JavaScript, the web, hackathons, teaching, photography & cocktails.
The filters that the REST APIs support varies from endpoint to endpoint. The best way to figure out what filters are available is by checking the docs for your specific doc and opening the REST reference docs for it
Hi Haroldo, this depends on the API you are calling and whether it has attributes you can filter on. Do you have a particular API you are asking about?
I'm working with the proglamable chat API, and I need to filter by the channel attributes and user attributes parameters. I've read the docs but there isn't explicit information about it. So what I am doing is getting all the users and all the channels and manually filtering by the attributes (attributes that I defined previously).
What's up everyone! 👋
I'm Phil and I'm also part of the team at Twilio. Happy to answer questions about the hack or the APIs (or anything really 😄).
I can't wait to see what you're all going to build!
👋 Great to see you Phil :)
Hey Peter! 👋
Hi Phil! Is it okay to ask about the grand prize "$1,500 USD gift card or equivalent "?
What kind of gift card is that? Where can we use it? Thank you.
Hi Phil, I have a question related to APIs, what is the best way to filter data by the attributes, does the API allow that or just returns a list (all channels, all users, etc) that I have to manually filter?
The filters that the REST APIs support varies from endpoint to endpoint. The best way to figure out what filters are available is by checking the docs for your specific doc and opening the REST reference docs for it
Hi Haroldo, this depends on the API you are calling and whether it has attributes you can filter on. Do you have a particular API you are asking about?
I'm working with the proglamable chat API, and I need to filter by the channel attributes and user attributes parameters. I've read the docs but there isn't explicit information about it. So what I am doing is getting all the users and all the channels and manually filtering by the attributes (attributes that I defined previously).
Oh, ok. No, you can't filter by custom attributes on channels or users through the API itself. So what you are doing is the best thing right now.