Ejemplo n.º 1
0
 def __init__(self, sid, token):
     self.pricing_client = TwilioPricingClient(sid, token)
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioPricingClient

# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"

client = TwilioPricingClient(account_sid, auth_token)
countries = client.messaging_countries().get("EE")

for p in countries.inbound_sms_prices:
    print("{} {}".format(p['number_type'], p['current_price']))

for op in countries.outbound_sms_prices:
    print("{}: {}".format(op['carrier'], op['prices']))
Ejemplo n.º 3
0
 def __init__(self, sid, token):
     self.pricing_client = TwilioPricingClient(sid, token)
     self.carrier_reference = []