Login   Register  
PHP Classes
elePHPant
Icontem

File: api.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ofertino  >  WP Shoot  >  api.php  >  Download  
File: api.php
Role: Class source
Content type: text/plain
Description: MAIN CLASS
Class: WP Shoot
Get Web page screenshots using ofertino.pl API
Author: By
Last change: Added access for everyone.
Date: 2012-08-25 04:39
Size: 519 bytes
 

Contents

Class file image Download
<?
/*
C 2012 OFERTINO
*/
class WPShootAPI {
    var 
$SRV "http://ofertino.pl/api";
    var 
$UID "demo1beta"//UNIQUE ID
    
var $STD false;
    var 
$URL "";
    var 
$SIZE 3//See the readme.txt
    
function __construct(){
    }
    function 
setURL($url){ //SET URL
        
$this->URL str_replace("http://","",$url);
    }
    function 
setSize($size){
        
$this->SIZE $size;
    }
    function 
getIMG(){ //GIVE BACK THE IMG (.PNG)
        
return $this->SRV."/get.php?uid=".$this->UID."&url=".$this->URL."&size=".$this->SIZE;
    }
}
?>