Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues occurred during integration with twitter #9

Open
GoogleCodeExporter opened this issue Jul 28, 2015 · 0 comments
Open

issues occurred during integration with twitter #9

GoogleCodeExporter opened this issue Jul 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 26 Dec 2011 at 8:32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant