tomtkarl / WSCreator

Web Service Design and Generation tool
0 stars 0 forks source link

Twitter App #42

Closed tomtkarl closed 11 years ago

tomtkarl commented 11 years ago

https://dev.twitter.com/docs/api/1.1

tomtkarl commented 11 years ago

Will probably need to use Twitter lib e.g. Twitter4J http://twitter4j.org/en/code-examples.html since Twitter API requres authentication...

tomtkarl commented 11 years ago

Using TwitterFunctionProvider the following methods have been added:

GetHomeTimeline

POST:

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header />
<soap:Body>
<m:TwitterRequest xmlns:m="https://api.twitter.com">
<method>GetHomeTimeline</method>
</m:TwitterRequest>
</soap:Body>
</soap:Envelope>

and GET:

http://localhost:8080/com.thoughtress.jsp/MyEndpoint/TwitterRequest?method=GetHomeTimeline

ShowStatus

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header />
<soap:Body>
<m:TwitterRequest xmlns:m="https://api.twitter.com">
<method>ShowStatus</method>
<id>306815712381521920</id>
</m:TwitterRequest>
</soap:Body>
</soap:Envelope>

and GET:

http://localhost:8080/com.thoughtress.jsp/MyEndpoint/TwitterRequest?method=ShowStatus&id=306815712381521920