File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 61
61
except Exception , e :
62
62
print e
63
63
print e .read ()
64
-
64
+
65
65
# ===========================================================================
66 66
# 5. Delete a specific recording
67
67
# uses a HTTP DELETE, no response is returned when using DELETE
72
72
except Exception , e :
73
73
print e
74
74
print e .read ()
75
+
76
+ # ===========================================================================
77
+ # 6. Send an SMS message
78
+ # uses a HTTP POST
79
+ OUTGOING_NUMBER = "NNNNNNNNNNN"
80
+ msg = "Hello!"
81
+ d = {
82
+ "From" : CALLER_ID ,
83
+ "To" : OUTGOING_NUMBER ,
84
+ "Body" : msg
85
+ }
86
+ try :
87
+ account .request ( '/%s/Accounts/%s/SMS/Messages' % \
88
+ (API_VERSION , ACCOUNT_SID ), "POST" , d )
89
+ except Exception , e :
90
+ print e
91
+ print e .read ()
92
+
You can’t perform that action at this time.
0 commit comments