<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS and Twilio SMS API in SAS Users Group in Israel</title>
    <link>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752500#M251</link>
    <description>&lt;P&gt;I think i found the solution..&lt;/P&gt;
&lt;P&gt;the problem was that sas tries to url encode the already url encoded character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the solution is to selectively pre urlencode&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	length msg_txt $ 256;
	msg_txt = urlencode("Go to") || '%0A' || urlencode("New Line");

	/* or even shorter ...*/
	msg_txt = urlencode("Go to" || byte(10) || "New Line");

	call symput('msg_txt', msg_txt);
run;
%put &amp;amp;msg_txt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;combined with using the proc http NOENCODE option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc http 
	method=POST
	url="&amp;amp;url"
	in = form 	(
				"From" 	="&amp;amp;from"
				"To" 	="&amp;amp;to"
				noencode "Body" 	="&amp;amp;msg_txt"
				)

	;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13766"&gt;@EyalGonen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98362"&gt;@Hagay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 07:49:47 GMT</pubDate>
    <dc:creator>Assaf_Attas</dc:creator>
    <dc:date>2021-07-07T07:49:47Z</dc:date>
    <item>
      <title>SAS and Twilio SMS API</title>
      <link>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752315#M247</link>
      <description>&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone has any experience with Twilio or any other kind of SMS API's ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm trying to figure how to pass a "new line" to the api&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;already tried \n and '0A'x ... it just pass then as plain text and not as special characters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc http 
	method=POST
	url="&amp;amp;url"
	in = form 	(
				"From" 	="&amp;amp;from"
				"To" 	="&amp;amp;to"
				"Body" 	="&amp;amp;sms_body"
				)
	out=rrespons
	headerout=hdrout
	WEBUSERNAME="&amp;amp;sid_account"
	WEBpassword="&amp;amp;token"
	auth_basic
	;
	DEBUG LEVEL=3 REQUEST_BODY REQUEST_HEADERS;
	
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752315#M247</guid>
      <dc:creator>Assaf_Attas</dc:creator>
      <dc:date>2021-07-06T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Twilio SMS API</title>
      <link>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752318#M248</link>
      <description>&lt;P&gt;Hello Assaf,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;didn't work with Twilio myself but according to this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.twilio.com/hc/en-us/articles/223181468-How-do-I-Add-a-Line-Break-in-my-SMS-or-MMS-Message-" target="_self"&gt;https://support.twilio.com/hc/en-us/articles/223181468-How-do-I-Add-a-Line-Break-in-my-SMS-or-MMS-Message-&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you need to add a $ sign to the beginning of the message to have your special characters to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hagay&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 14:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752318#M248</guid>
      <dc:creator>Hagay</dc:creator>
      <dc:date>2021-07-06T14:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Twilio SMS API</title>
      <link>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752488#M249</link>
      <description>&lt;P&gt;hi hagay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using $ sign is for cUrl..&lt;/P&gt;&lt;P&gt;i guess i'm looking for the sas equivalent for protecting special characters in proc http&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 04:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752488#M249</guid>
      <dc:creator>Assaf_Attas</dc:creator>
      <dc:date>2021-07-07T04:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Twilio SMS API</title>
      <link>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752498#M250</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/330397"&gt;@Assaf_Attas&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if any of the links below help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/3871729/transmitting-newline-character-n" target="_blank"&gt;https://stackoverflow.com/questions/3871729/transmitting-newline-character-n&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/proc-http-passing-url-parameters-which-have-special-characters/td-p/489133" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/proc-http-passing-url-parameters-which-have-special-characters/td-p/489133&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eyal&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 07:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752498#M250</guid>
      <dc:creator>EyalGonen</dc:creator>
      <dc:date>2021-07-07T07:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS and Twilio SMS API</title>
      <link>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752500#M251</link>
      <description>&lt;P&gt;I think i found the solution..&lt;/P&gt;
&lt;P&gt;the problem was that sas tries to url encode the already url encoded character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the solution is to selectively pre urlencode&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
	length msg_txt $ 256;
	msg_txt = urlencode("Go to") || '%0A' || urlencode("New Line");

	/* or even shorter ...*/
	msg_txt = urlencode("Go to" || byte(10) || "New Line");

	call symput('msg_txt', msg_txt);
run;
%put &amp;amp;msg_txt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;combined with using the proc http NOENCODE option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc http 
	method=POST
	url="&amp;amp;url"
	in = form 	(
				"From" 	="&amp;amp;from"
				"To" 	="&amp;amp;to"
				noencode "Body" 	="&amp;amp;msg_txt"
				)

	;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13766"&gt;@EyalGonen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98362"&gt;@Hagay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 07:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Users-Group-in-Israel/SAS-and-Twilio-SMS-API/m-p/752500#M251</guid>
      <dc:creator>Assaf_Attas</dc:creator>
      <dc:date>2021-07-07T07:49:47Z</dc:date>
    </item>
  </channel>
</rss>

