Hi JC, Twitter connector was written in the first round of connectors. At that time decision was to use SDK when ever provided by a third party.
But this has changed and now the recommended was is to use rest api instead of SDK with class mediators. Regarding access token, correct way of doing this with current model is to set and store the access token, using init method in a property and use it for subsequent calls. It may take some time for integration tests and docs as well. Better have that in your planning. Best Regards, Malaka On Thu, Apr 10, 2014 at 2:03 PM, Jason Catlin <[email protected]> wrote: > Hey guys, > > As you know, the ESB has the ability to use connector plugins so that > you can easily make calls to common services without having to > re-implement the details. We want a rich library of these, and I'll > be contributing a few. I'll be starting with a youtube connector, > something relativley simple, and then doing more complicated ones > later. > > So I looked through all the connectors already implemented and > determined that the twitter connector is probably the most similar to > what I'll be doing. The authentication is very similar, and then both > just have a few simple queries made through REST interfaces. > > A few points of interest: Even though the ESB Connector system has a > way to specify REST connectors, the twitter connector doesn't use > this, and rather uses a Java coded one instead. Does anyone know what > the reason for this is? > > Also, I noticed that the twitter connector forms an OAuth token inside > the Java code, and it gets its authentication details from properties > that it reads form the configuration of the connector. This is one > way to do it. Another way, which might make more sense to me, is for > the connector to ignore the OAuth all together, and have the user add > that header outside the connector. This might give them much more > control over it. Does anyone know why they set up the twitter > connector that way? > > In general, I think this will probably be a pretty open and shut > project. I'd be suprised if it takes more than a week. > > JC > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/<http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
