#NEWLINE# def autodoc( url_root , username , id_string ) : #NEWLINE# #INDENT# urla = ( url_root + reverse ( 'sms_submission_api' , kwargs = { #NEWLINE# #INDENT# 'username' : username , #NEWLINE# 'service' : 'twilio' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# urlb = ( url_root + reverse ( 'sms_submission_form_api' , kwargs = { #NEWLINE# #INDENT# 'username' : username , #NEWLINE# 'id_string' : id_string , #NEWLINE# 'service' : 'twilio' , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# doc = ( ( ( ( ( ( ( ( ( ( ( '<p>' + ( _ ( '%(service)s Instructions:' ) % { #NEWLINE# #INDENT# 'service' : '<a href="https://twilio.com">Twilio\'s SMS Request</a>' , #NEWLINE# #UNINDENT# } ) ) + '</p><ol><li>' ) + _ ( 'Sign in to Twilio.com and go your Application.' ) ) + '</li><li>' ) + _ ( 'Follow instructions to add one of the following URLs, selecting the HTTP POST method:' ) ) + '<br /><span class="sms_autodoc_example">%(urla)s' ) + '<br />%(urlb)s</span><br />' ) + '</li></ol><p>' ) + _ ( "That's it. Now Send an SMS Formhub submission to your Twilio phone number. It will create a submission on Formhub." ) ) + '</p>' ) % { #NEWLINE# #INDENT# 'urla' : urla , #NEWLINE# 'urlb' : urlb , #NEWLINE# #UNINDENT# } ) #NEWLINE# return doc