Quantcast
Viewing all articles
Browse latest Browse all 676

Connecting JS and HANA Tables

Hi Experts

I have written a HTML-Javascript code that return LinkedIN Profile details in JSON format.Now i want to add those data into my table. Should i convert them into XSJS type if so can you guide me through the steps? Sholud i write xshttpdest? Can you guide sample code will be really helpful.

 

My Code:

 

<html><head><title>LinkedIn JavaScript API Hello World</title><!-- 1. Include the LinkedIn JavaScript API and define a onLoad callback function --><script type="text/javascript" src="https://platform.linkedin.com/in.js">/*  api_key: 75eq444tllkike  onLoad: onLinkedInLoad  authorize: true  credentials_cookie: true  credentials_cookie_crc: true
*/</script><script type="text/javascript">
function onLinkedInLoad() {  IN.Event.on(IN, "auth", onLinkedInAuth);
}
function onLinkedInLogout() {  setConnections({}, {total:0});
}
function onLinkedInAuth() {  IN.API.Connections("me")    .fields("firstName", "lastName", "industry","summary","headline","specialties","positions","interests","educations")    .result(displayConnections)    .error(displayConnectionsErrors);
}
function displayConnections(connections) {  var connectionsDiv = document.getElementById("connections");  var members = connections.values; // The list of members you are connected to  /*for (var member in members) {    connectionsDiv.innerHTML += "<p>" + members[member].firstName + " " + members[member].lastName+ " works in the " + members[member].industry + " industry";}*/  document.write(JSON.stringify(members));     
}
function displayConnectionsErrors(error) { /* do nothing */ }</script></head><body><!-- 3. Displays a button to let the viewer authenticate --><script type="IN/Login"></script><!-- 4. Placeholder for the greeting --><div id="profiles"></div><div id="connections"></div></body></html>

Kindly Assist


Viewing all articles
Browse latest Browse all 676

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>