Skip to Content
Author's profile photo Former Member

Integrating HCI with Twitter – Part 2

In the previous blog, Integrating HCI with Twitter – Part 1, we covered the essential configurations that needs to be done in Twitter for integration. Now we shall start designing/configuring the iFlow in our eclipse based tool.

Create an iFlow, with SOAP as sender and the twitter as the receiver, with a simple one-one message mapping, with same source and target structure (mapping can be ignored as well) followed by a “Filter”.

/wp-content/uploads/2016/03/iflow_898857.png

Under the Sender system, select “Basic Authentication”.

SOAP Sender Configuration:

Give a relative endpoint address, and select the wsdl, which contains the source structure. The service and endpoint parameters gets filled automatically.

snd channel.png

Refer Import PI Content for HCI, for downloading WSDLs, from an existing PI landscape.

Create a Message mapping, with just one field, and do a one-one mapping.

/wp-content/uploads/2016/03/mapping_898868.png

Add a Filter after the mapping in the iFlow, from the “Message Transformers” and give the XPath from where the content needs to be extracted, the value type as “string”.

/wp-content/uploads/2016/03/filter_898869.png

Configure the receiver channel as follows. Select the “Send Tweet” endpoint post a tweet. Type in the corresponding artifact names that were deployed earlier.

rec channel.png

Save and deploy the iFlow. Under “Node explorer” select the IFLMAP application as below.

/wp-content/uploads/2016/03/node_898871.png

/wp-content/uploads/2016/03/services_898872.png

Under Properties->Services, get the endpoint URL for the deployed iFlow. Open SOAP UI and create a SOAP Project, and enter the iFlow. It would ask for user credentials, enter your HCI tenant credentials.

Again, select the Authorization type for the SOAP request as “Basic Authentication”, and type in your HCI creds again.

/wp-content/uploads/2016/03/soap_898873.png

Trigger the Soap request, with a message, and see the tweet in your profile

/wp-content/uploads/2016/03/tweet_898874.png

Message Monitoring in HCI:

MM.png

For sending DM to other profiles, select the endpoint as “Direct Message” in the receiver comm.channel and enter the twitter ID of recipient(without the’@’). Rest all procedures, remain the same.


Happy Tweeting  🙂

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Good blog.

      I have a below query.

      Do we have the option to tweet directly to another person instead of the direct message ?

      Any clue on this

      Thanks

      Rajesh

      Author's profile photo Marcelo Fiorito
      Marcelo Fiorito

      Hello,
      I am trying to search for tweets. Do you know how can I pass the keywords dinamically? I am using ${property.keyword} but the search looks for ${property.keyword} and not the value that is inside this property.

      Thanks
      Marcelo

      Author's profile photo Vimal Pillai
      Vimal Pillai

      Hi Shankar,

       

      Tweet sending to own ID works, but using endpoint Direct Message using a different ID does not work. I used only the userID without @ in the UserID section of channel.

      Any suggestions.

       

      Regards

       

      Vimal Pillai