In today’s world, influencing people through social media is not a luxury, but a necessary part of every company’s growth strategy. In this blog series, we will use ICS to connect to social media like LinkedIn and post messages.
A company has the requirement to advertise an available position automatically on LinkedIn. This can happen when a new position is created, or when someone leaves the company, resulting in that position being vacant. For the purpose of this POC (Proof of concept), we are going to mimic the company’s resource management system with SOAPUI (open-source web service testing application for service-oriented architectures (SOA) and representational state transfers (REST)). SOAPUI/Resource Management system sends a REST request to ICS as and when a position is available with the following two fields:
- Destination: The destination platform where the opportunity will be posted, in this case, LinkedIn.
- Message: The actual message that has to be posted on LinkedIn/Twitter.
Implementation and Testing:
The implementation will be done in three parts:
1) Part 1: We create a connector from ICS to LinkedIn.
2) Part 2: Create the orchestration, request and response mappings
3) Part 3: Create a mock client using SOAPUI, and test the flow
First Part will be covered by this blog, the next steps will be covered by the next blogs in the series.
So let’s we start off with creating a connection to LinkedIn. First, you have to configure your LinkedIn account so it can accept connections from ICS. Since the process is well-documented at http://docs.oracle.com/cloud/latest/intcs_gs/ICSLI/GUID-7A6854EE-4ED9-4978-8DB7-EF0A7C2C5CDD.htm#ICSLI-GUID-6CD39FBD-7E66-4DB2-997D-EEE3EB3CFBBE, We would not repeat it in this blog. After that,you have perform below steps:
1) Access Oracle Integration cloud service Console.
For those who are new to ICS, Please check our previous blog post here to create a new ICS account and how to access it.
2) Click on ‘Connections‘ on the home page, and then ‘New Connector‘. This opens up a window with all the available type of connectors. Search at the top or scroll down for ‘LinkedIn‘ connector.
3) Click on the connector, a new window opens up for entering information, name your connection to LinkedIn.
4) After this, click on ‘Configure Security’ at the right bottom side. You would see a screen like this, provide your Client Id and Client Secret (which you got after creating your app on LinkedIn’s app console, as mentioned in the Oracle documentation to which I pointed above). The scope basically means what this connection is allowed to do on your LinkedIn account. In this case, it says it is the admin account for the company and is allowed to share things. Now, click ‘Provide Consent’.
5) Now, you would probably see the below screen with an error. This is because a ‘Redirect URL’ has to be provided in your app at the LinkedIn app page. This helps the connection from ICS to LinkedIn authorize and establish the connection. Go to the address bar, and copy the string after redirect_uri. It should look something like this: https%3A%2F%2Fintegration<companyname>nl.integration.us2.oraclecloud.com%3A443%2Ficsapis%2Fagent%2Foauth%2Fcallback.
This has to be decoded, I used http://meyerweb.com/eric/tools/dencoder/, and ended up with https://integration<companyname>nl.integration.us2.oraclecloud.com:443/icsapis/agent/oauth/callback
6) Go to the LinkedIn app console, and add this decoded URL in ‘Authorized Redirect URLs’, and click ‘Update’ at the bottom.
7) Now, go back to ICS, click ‘Provide Consent’, and voila! You got a connection! Click ‘TEST’ on top right to finish creating the LinkedIn connector.
This is all about the first part of this blog series that is creating a connector from ICS to LinkedIn.In the next Part of this blog series, we will cover Creating the orchestration, request and response mappings, Create a mock client using SOAPUI and then will test the flow.
So Stay tuned for our next blog !
This post is from our Oracle Integration Cloud Services Training where we also cover about configuring Adaptors and connections, Configuring integrations, Data Mapping, Lookups, SaaS, On-premises integration agents, Security, Schedules, Versioning, Activating, Monitoring integrations and much more.
Next Task for you:
Did you get a chance to download 6 Documents Every Oracle Cloud integrator must read? If not, then get it now by clicking on the link below.
If you liked this post then share with Your Friends over Social Media!