Hi Bala, Doc in [1] will help you to write a custom inbound endpoint.
[1] https://docs.wso2.com/display/EI611/Custom+Inbound+Endpoint#CustomInboundEndpoint-CustomPolling On Wed, Jul 5, 2017 at 5:09 AM, Jasintha Dasanayake <[email protected]> wrote: > HI Malaka > > In this case, this guy need to create the custom connector right , he may > can reuse the twitter code to write his connector > > Thanks > /Jasintha > ---------- Forwarded message ---------- > From: [email protected] <[email protected]> > Date: Thu, Jun 29, 2017 at 5:57 PM > Subject: how to connect custom streaming api's in WSO2 EI-6.1.1 > To: Jasintha Dasanayake <[email protected]> > > > Hi Jasintha, > > > > I trying to connect custom streaming API instead of default API’s like > twitter streaming API. How can I achieve in WSO2 EI-6.1.1? > > > > Able to connect to twitter streaming API following are the steps followed: > > > > - Downloaded twitter streaming API from https://store.wso2.com/store/a > ssets/esbconnector/details/e916c772-49b1-44ad-a051-539ee44dd673 > > <https://store.wso2.com/store/assets/esbconnector/details/e916c772-49b1-44ad-a051-539ee44dd673> > - Placed in WSO2_EI_HOME/lib > - Configured twitter credentials in “INBOUND ENDPOINT” like below: > > > > <inboundEndpoint xmlns="http://ws.apache.org/ns/synapse" > <http://ws.apache.org/ns/synapse> > > name="TwitterInboundEP" > > sequence="reqSequence" > > onError="reqErrorSequence" > > class="org.wso2.carbon.inbound.twitter.poll > .TwitterStreamData" > > suspend="false"> > > <parameters> > > <parameter name="sequential">true</parameter> > > <parameter name="interval">10</parameter> > > <parameter name="coordination">true</parameter> > > <parameter name="connection.twitter.consu > merKey">KCHme1tyBln7L9E0zVte1PzFs</parameter> > > <parameter name="connection.twitter.consu > merSecret">zQPn5OlMDcV0AFBC6MxhnNaLXMJCUGRIyeE1XogTwUou5tgC4a</parameter> > > <parameter name="connection.twitter.acces > sToken">3250392756-WLKUJstoqy2WL9HLMuvenpiZRkLOPayi8ca82uz</parameter> > > <parameter name="connection.twitter.acces > sSecret">56q7Fi4AEMy6xMJ4PTOuu7f3VcAYvO7PuSUHGSs9trWJU</parameter> > > <parameter name="twitter.operation">user</parameter> > > <parameter name="twitter.track">happy,wonderful</parameter> > > </parameters> > > </inboundEndpoint> > > > > - It started polling messages from API based on “twitter.operation”,” > twitter.track” these two parameters values. > > > > Now in same way I have an custom streaming rest API, How can poll the > streaming messages from the api and do some operations(get all the messages > into the sequence)? > > > > *Regards,* > > *Bala | Bangalore | +91-9986947584 <+91%2099869%2047584>* > > > The information contained in this electronic message and any attachments > to this message are intended for the exclusive use of the addressee(s) and > may contain proprietary, confidential or privileged information. If you are > not the intended recipient, you should not disseminate, distribute or copy > this e-mail. Please notify the sender immediately and destroy all copies of > this message and any attachments. WARNING: Computer viruses can be > transmitted via email. The recipient should check this email and any > attachments for the presence of viruses. The company accepts no liability > for any damage caused by any virus transmitted by this email. > www.wipro.com > > > > -- > > *Jasintha Dasanayake**Associate Technical Lead* > > *WSO2 Inc. | http://wso2.com <http://wso2.com/>lean . enterprise . > middleware* > > > *mobile :- 0711-368-118 <071%20136%208118>* > -- Best Regards, Malaka Silva Associate Director / Architect 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 https://wso2.com/signature http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> https://store.wso2.com/store/ Don't make Trees rare, we should keep them with care
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
