def example():
client = Client(ACCOUNT_SID, AUTH_TOKEN)<EOL>all_messages = client.messages.list()<EOL>print('<STR_LIT>'.format(len(all_messages)))<EOL>some_messages = client.messages.list(limit=<NUM_LIT:10>)<EOL>print('<STR_LIT>')<EOL>for m in some_messages:<EOL><INDENT>print(m)<EOL><DEDENT>all_messages = client.messages.list(page_size=<NUM_LIT:10>)<EOL>print('<STR_LIT>'.format(len(all_messages)))<EOL>print('<STR_LIT>')<EOL>new_message = client.messages.create(to='<STR_LIT>', from_='<STR_LIT>', body='<STR_LIT>')<EOL>print('<STR_LIT>')<EOL>new_call = client.calls.create(to='<STR_LIT>', from_='<STR_LIT>', method='<STR_LIT:GET>')<EOL>print('<STR_LIT>')<EOL>twiml_response = VoiceResponse()<EOL>twiml_response.say('<STR_LIT>')<EOL>twiml_response.hangup()<EOL>twiml_xml = twiml_response.to_xml()<EOL>print('<STR_LIT>'.format(twiml_xml))<EOL>
Some example usage of different twilio resources.