<?php
################## Liketly Api Class ################
################## Example #####################
if(!isset($_SESSION))
{
session_start();
}
require_once('liketlyapi.class.php');
$lkapi = new LiketLyApi;
######## config ###########
$lkapi->_domain = 'ABC.com';
$lkapi->_appurl = 'http://www.liketly.com/apps/68/liketlyapi-user-integrated/';
$lkapi->_appid = '20MOKQCR0M4GOLOS7PL7TT76UEJJE815';
######### end config #######
// if isset _GET['key'], do login
$lkapi->DoLogin();
// check login, if not yet, redirect to login
$Liketly_user_id = $lkapi->CheckLogin(true);
if($Liketly_user_id){
// logged user
var_dump($lkapi->user());
}
?>
|