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

Retrieving A Programmable Chat User. #85

Closed
inicklas opened this issue Jan 30, 2018 · 2 comments
Closed

Retrieving A Programmable Chat User. #85

inicklas opened this issue Jan 30, 2018 · 2 comments

Comments

@inicklas
Copy link

inicklas commented Jan 30, 2018

I've been trying to retrieve a user I created for the programmable chat but I get

>> Built url: https://chat.twilio.com/v2/Users/sid-here

{:error,
 "The requested resource /Users/USd908c37b2f444856a5e52122f6370d01 was not found",
 404}

when I run ExTwilio.Api.find(ExTwilio.ProgrammableChat.User, "sid")

Am I doing anything silly?

@efexen
Copy link

efexen commented Jan 31, 2018

Twilio scopes users by Services so you need to provide the service SID to scope by, this should work:

ExTwilio.Api.find(ExTwilio.ProgrammableChat.User, "sid", service: "service_sid")

👍

@danielberkompas
Copy link
Owner

Thanks for jumping in on this one @efexen.

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

3 participants