Last active
August 29, 2015 13:58
-
-
Save tokenvolt/10022065 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data; | |
data = { | |
user: { | |
email_address: "joe@bloggs.com", | |
provider: "linkedin", | |
uid: "1234567", | |
info: { | |
nickname: "jbloggs", | |
name: "Joe Bloggs", | |
first_name: "Joe", | |
last_name: "Bloggs", | |
email: "joe@bloggs.com", | |
location: "Ukraine, UA", | |
headline: "Ruby on Rails developer", | |
urls: { | |
public_profile: "http://www.linkedin.com/pub/test/66/a44/3a1" | |
}, | |
image: "http://m3.licdn.com/mpr/mprx/0_ZPIPybXSqNSDY8LaZB48yXFa4-EfyQLaVA02yXkYFAY0_G-mqvRx-krK9sor0TXGMKdSP_sgNlAo" | |
}, | |
credentials: { | |
secret: "bf5d920a-0d91-45ad-9fd1-70114acff2f5", | |
token: "45af324b-2e32-4a15-b377-78d53f813efa", | |
expires_at: 1321747205, | |
expires: true | |
}, | |
extra: { | |
raw_info: { | |
pictureUrls: { | |
_total: 1, | |
values: ["http://m3.licdn.com/mpr/mprx/full_profile"] | |
}, | |
positions: { | |
_total: 2, | |
values: [ | |
{ | |
title: "Unix system administrator", | |
isCurrent: true, | |
company: { | |
id: "111", | |
industry: "Computer Software", | |
name: "Google", | |
startDate: 2, | |
month: 10, | |
year: 2013 | |
} | |
}, { | |
title: "Software Developer", | |
isCurrent: false, | |
company: { | |
industry: "Telecommunications", | |
name: "Facebook", | |
startDate: 2, | |
month: 2, | |
year: 2013, | |
endDate: 3, | |
month: 9, | |
year: 2013 | |
} | |
} | |
] | |
} | |
} | |
} | |
} | |
}; | |
$.ajax({ | |
url: "http://http://www.absorbfinance.com/linkedin", | |
type: "POST", | |
dataType: 'json', | |
contentType: 'application/json', | |
data: JSON.stringify(data), | |
headers: { | |
Authorization: "Basic ".concat(btoa("admin:secret123!")) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment