Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 29, 2011 10:28 AM by Ahmed Moosa
Member
47 Points
85 Posts
Dec 29, 2011 09:59 AM|LINK
hi... i am having a problem .. i want to read Xml file form a web.... i am read file using this
XmlTextReader reader = new XmlTextReader("https://api.groupon.com/v2/divisions.xml");
but when i read it ask me a Client_id, i have a client id but i don't know how to post that id with this url... :(
can somebody tell me how to do this.
i will be very thankful ...
Regards.
Star
7784 Points
1232 Posts
Dec 29, 2011 10:03 AM|LINK
Did you try this :
https://api.groupon.com/v2/divisions.xml?Client_id=yourid
Dec 29, 2011 10:06 AM|LINK
yes... i want to try this ... but first i need to try that url
Dec 29, 2011 10:17 AM|LINK
if you try to pass this Url without Client_id , your response will be :The remote server returned an error: (400) Bad Request
so , you need to pass Client_id .
Dec 29, 2011 10:23 AM|LINK
Thank You Ahmad Brother.. :)
Dec 29, 2011 10:28 AM|LINK
You Are Welcome ,
Sheikhans
Member
47 Points
85 Posts
How to Get XML data
Dec 29, 2011 09:59 AM|LINK
hi... i am having a problem .. i want to read Xml file form a web.... i am read file using this
XmlTextReader reader = new XmlTextReader("https://api.groupon.com/v2/divisions.xml");
but when i read it ask me a Client_id, i have a client id but i don't know how to post that id with this url... :(
can somebody tell me how to do this.
i will be very thankful ...
Regards.
Ahmed Moosa
Star
7784 Points
1232 Posts
Re: How to Get XML data
Dec 29, 2011 10:03 AM|LINK
Did you try this :
https://api.groupon.com/v2/divisions.xml?Client_id=yourid
MCC - MCPD -MCTS
Sheikhans
Member
47 Points
85 Posts
Re: How to Get XML data
Dec 29, 2011 10:06 AM|LINK
yes... i want to try this ... but first i need to try that url
Ahmed Moosa
Star
7784 Points
1232 Posts
Re: How to Get XML data
Dec 29, 2011 10:17 AM|LINK
if you try to pass this Url without Client_id , your response will be :The remote server returned an error: (400) Bad Request
so , you need to pass Client_id .
MCC - MCPD -MCTS
Sheikhans
Member
47 Points
85 Posts
Re: How to Get XML data
Dec 29, 2011 10:23 AM|LINK
Thank You Ahmad Brother.. :)
Ahmed Moosa
Star
7784 Points
1232 Posts
Re: How to Get XML data
Dec 29, 2011 10:28 AM|LINK
You Are Welcome ,
MCC - MCPD -MCTS