Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of khong ten  >  Liketly API  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example use the class
Class: Liketly API
Send requests to the API of Likelty social network
Author: By
Last change:
Date: 1 year ago
Size: 683 bytes
 

Contents

Class file image Download
<?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());
}


?>