-
Notifications
You must be signed in to change notification settings - Fork 39
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
Modified the README.md to include a second example #40
base: master
Are you sure you want to change the base?
Conversation
Modified the README.md to include a second example where the account SID and auth token are embedded in the code rather than stored as environmental variables. This would allow a developer to compile a self-contained executable that could be run by end users without the need to create or understand environment variables. Also modified both examples to define sending and receiving phone number bindings to make it easier for the developer to read/configure.
README.md
Outdated
let body = PostMessage "+14158059869" "+14158059869" "Oh, hai" | ||
let receivingPhone = "+14158059869" | ||
let sendingPhone = "+14158059869" | ||
let body = PostMessage receivingPhone sendingPhone "Oh, hai" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about using the names to
and from
instead of receivingPhone
and sendingPhone
? This would better match the REST API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, works for me. I'll make the change and update the pull request tomorrow morning.
Aaron
Cleared the review notes for commit 2afd62a (modified README for a second example). Modified the following: * Used to/from on phone bindings to match with Twilio's RESTful API * Alphabetized the imports * Used simpler Data.Text (Text) rather than qualified * Switched to 2 space indent from 4
@markandrus Hi Mark. It seems like this PR is over a year old. Would like to know if you want to update it and try to merge it into master, or if it is a good candidate for closing. (P.S., haven't actually looked at it, just the date it was opened). |
Sorry, I kind of dropped the ball on @asparks1805 PR. Some notes:
I'm also reminded of this suggestion to improve some of our examples. I don't think we should merge this as-is. Maybe we can run with some of the bullet points above, though? |
Modified the README.md to include a second example where the account SID and
auth token are embedded in the code rather than stored as environmental
variables. This would allow a developer to compile a self-contained executable
that could be run by end users without the need to create or understand
environment variables. Also modified both examples to define sending and
receiving phone number bindings to make it easier for the developer to
read/configure.
This change is