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

feat: support http proxy in TwilioHttpClient #500

Merged
merged 2 commits into from
Dec 5, 2019

Conversation

thehackercat
Copy link
Contributor

@thehackercat thehackercat commented Dec 3, 2019

Ref #409

Adding support for TwilioHttpClient to make requests behind a custom proxy, for example

from twilio.http.http_client import TwilioHttpClient
from twilio.rest import Client

sid = ''
token = ''
http_client = TwilioHttpClient(proxy={'http': 'http://proxy.twilio.com:8118'})
twilio_client = Client(sid, token, http_client=http_client)
twilio_client.messages.create()

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

@thehackercat thehackercat force-pushed the dev branch 2 times, most recently from 4bf9509 to 5bf3fde Compare December 3, 2019 06:25
@thehackercat thehackercat force-pushed the dev branch 7 times, most recently from 19f3d50 to 5b1118a Compare December 5, 2019 03:27
Copy link
Contributor

@childish-sambino childish-sambino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Successfully merging this pull request may close these issues.

2 participants