Browse Source

Pylinting twilioapi.py

David Leonard 10 years ago
parent
commit
be4b1d2d86
1 changed files with 15 additions and 9 deletions
  1. 15 9
      hackathon_starter/hackathon/scripts/twilioapi.py

+ 15 - 9
hackathon_starter/hackathon/scripts/twilioapi.py

@@ -1,13 +1,19 @@
-import twilio
-import requests
+# pylint: disable=invalid-name
+# pylint: disable=unused-variable
+
+'''
+Twilioapi.py is responsible for sending
+a message from a registered Twilio number
+to a user's phone.
+'''
 from twilio.rest import TwilioRestClient
- 
+
 account_sid = "AC7889a1889c1833bd7181e45e60372776"
-auth_token  = "1ad0315f3cc7a154aaaef048f1304f71"
+auth_token = "1ad0315f3cc7a154aaaef048f1304f71"
 client = TwilioRestClient(account_sid, auth_token)
- 
+
 def sendSMS(body, to, sender):
-	'''Sends a message to a given number'''
-	
-	message = client.messages.create(body=body, to=to, from_=sender) 
-	return
+
+    '''Sends a message to a given number'''
+    message = client.messages.create(body=body, to=to, from_=sender)
+    return