What steps will reproduce the problem?
1. while sending http request to twitter , it gives this error
Twitter.TwitterApiException: Status: 500 Internal Server Error Content-Type:
text/html <html><body><h1>500 Internal Server Error</h1></body></html>
my request format is
string LogedInUser;
LogedInUser=Userinfo.getuserId();
Twitter.Share s = new Twitter.Share();
Twitter link= new Twitter(LogedInUser);
s.text= 'Job vacancy';
s.related='AppYear';
s.url='www.google.com';
link.updateUserShare(s);
my share class is
public class Share
{
public String text{get;set;}
public String related{get;set;}
public String url{get;set;}
public Share()
{ }
public DOM.Document toXML()
{
DOM.Document doc = new DOM.Document();
Dom.XmlNode req=doc.createRootElement('text', null, null);
if (text!= null || related!= null || url != null)
{
Dom.XmlNode body;
body= req.addChildElement('text', null, null).addTextNode(text);
body= req.addChildElement('related', null, null).addTextNode((related != null)?related:'');
body= req.addChildElement('url', null, '').addTextNode((url != null)?url:'');
}
return doc;
}
}
What is the expected output? What do you see instead?
twitter status should be updated with the given text and url.
What version of the product are you using? On what operating system?
i m using beta 1.0 OAuth Playground package.
I think there is a problem in toXML() method, please look into it.
Thanks!
Asia Naseer.
Original issue reported on code.google.com by fairy.na...@gmail.com on 26 Dec 2011 at 8:32
Original issue reported on code.google.com by
fairy.na...@gmail.com
on 26 Dec 2011 at 8:32