Skip to content

Instantly share code, notes, and snippets.

View lkdocs's full-sized avatar

LaunchKey Documentation Examples lkdocs

View GitHub Profile
LaunchKey.deauthorize(auth_request)
{
"date_stamp" : "2013-04-20 21:40:02",
"launchkey_time" : "2013-09-11 07:33:11",
"key" : "-----BEGIN PUBLIC KEY-----\n\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8zQos4iDSjmUVrFUAg5G\nuhU6GehNKb8MCXFadRWiyLGjtbGZAk8fusQU0Uj9E3o0mne0SYESACkhyK+3M1Er\nbHlwYJHN0PZHtpaPWqsRmNzui8PvPmhm9QduF4KBFsWu1sBw0ibBYsLrua67F/wK\nPaagZRnUgrbRUhQuYt+53kQNH9nLkwG2aMVPxhxcLJYPzQCat6VjhHOX0bgiNt1i\nHRHU2phxBcquOW2HpGSWcpzlYgFEhPPQFAxoDUBYZI3lfRj49gBhGQi32qQ1YiWp\naFxOB8GA0Ny5SfI67u6w9Nz9Z9cBhcZBfJKdq5uRWjZWslHjBN3emTAKBpAUPNET\nnwIDAQAB\n\n-----END PUBLIC KEY-----\n"
}
<!-- Paste above the end </body> tag in your HTML -->
<script type="text/javascript">
LK = Object();
LK.appKey = 1234567890;
LK.icon = "medium";
LK.redirectURL = location.protocol + '//' + location.host + window.location.pathname;
LK.color = "blue";
</script>
<script src="https://d2882u593o0m3.cloudfront.net/lksdk.min.js"></script>
<!-- Paste this where you want your login button -->
<div id="lkLoginButton"></div>
GET https://oauth.launchkey.com/authorize?
client_id=1234567890
&redirect_uri=REDIRECT_PAGE_URL
GET https://oauth.launchkey.com/access_token?
client_id=1234567890
&client_secret=YOUR_SECRET_KEY
&redirect_uri=REDIRECT_PAGE_URL
&code=AUTHORIZATION_CODE
&grant_type=authorization_code
curl -i -H "Authorization: Bearer DZUonEx5YpM2jeLHhBmH1xKsg3pB2VAB6L5HrrHiHLcK7M1U2qtsb78gDNNXTf2W" https://oauth.launchkey.com/resource/ping
GET https://oauth.launchkey.com/access_token?
client_id=1234567890
&client_secret=SECRET_KEY
&redirect_uri=REDIRECT_PAGE_URL
&refresh_token=REFRESH_TOKEN
&grant_type=refresh_token
GET https://oauth.launchkey.com/logout?
access_token=YjDhzsqVUgIPPzue0hdULnmidw7GDuiY0fjl77SftVdfLdaSKBpvz169AjmSzIvg
&close=true