How to update subscriber using ASP.NET ?

128 views
Skip to first unread message

sweta chotalia

unread,
Oct 12, 2011, 5:57:25 AM10/12/11
to streamsend-...@googlegroups.com
As per the documentation mentioned in "http://72.19.230.19/API.pdf", below is the xml for updating the subscriber. But how can we send the below xml to HTTPRequest object ?

<system>
  <parameterlist>
  <parameter id='List ID'><value>2</value></parameter>
  <parameter id='Subscriber ID'><value>4bffda4c6634ca0e1facab0d94e34de9</value></parameter>
  <parameterarr>
<parameter id='First Name'><value>roger</value></parameter>
<parameter id='Email Address'><value>they...@hotmail.com</value></parameter>
<parameter id='Last Name'><value>the...@hotmail.com</value></parameter>
  </parameterarr>
  </parameterlist>  <action>updatesubscriber</action>
  <authorization>
  <password>demo</password>
  <username>ssdemo</username>
  </authorization>
  </system>

Thanks in advance,
Sweta Chotalia

Mark Armistead

unread,
Oct 12, 2011, 12:39:21 PM10/12/11
to streamsend-...@googlegroups.com
Hi Sweta,

Thats actually XML from the older version of our API used on the StreamSend classic platform. We no longer support API development on our classic accounts.

Use the API documentation here:
http://www.streamsend.com/kb2/idx.php/5/0/09-API.html

Also some sample code is available in the knowledgebase:
http://www.streamsend.com/kb2/idx.php/5/0/09-API.html

Mark
StreamSend Support

Mark Armistead

unread,
Oct 12, 2011, 12:42:12 PM10/12/11
to streamsend-...@googlegroups.com
Sweta,

I apologize didn't get that first link correct:


Use the API documentation here:
http://app.streamsend.com/docs/api/index.html

Mark
StreamSend Support

Prabhu Kameswaran

unread,
Apr 30, 2014, 10:25:58 AM4/30/14
to streamsend-...@googlegroups.com, ma...@streamsend.com

I am getting 404 error for this xml i am sending to api. What could be wrong Any ideas. Please reply. Thank you.

Uri url = new Uri("https://app.streamsend.com/audiences/2/people.xml");
            HttpWebRequest webrequest = WebRequest.Create(url) as HttpWebRequest;
        //    webrequest.Headers.Add(
            webrequest.Method = "POST";
            webrequest.Accept = "application/xml";

            StringBuilder strbuild = new StringBuilder();
            strbuild.AppendLine("<person>");
            strbuild.AppendLine("<email-address>sam...@sampleconsulting.com</email-address>");
            strbuild.AppendLine("<first-name>Deane</first-name>");
            strbuild.AppendLine("<last-name>Moore</last-name>");
            strbuild.AppendLine("</person>");

 
Reply all
Reply to author
Forward
0 new messages