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 Edmund Gentle  >  Webs.com API Library  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example of implementation
Class: Webs.com API Library
Manipulate content of a site in Webs.com
Author: By
Last change:
Date: 2009-12-23 08:22
Size: 530 bytes
 

Contents

Class file image Download
<?php
include('simple_html_dom.php');
include(
'webs-api.php');
$username="username";
$password="password";
$api-key="apikey";
$webs = new Webs($username$password$api-key);
$webs->listPages($type);
$webs->addPageContent($page_id,$title,$body);
$webs->addAlbumPhoto($page_id,$title,$caption,$imagesrc);
$webs->addBlogEntry($title,$body);
$webs->listFiles($path,$filter);
$webs->getFileInfo($path,$file);
$webs->uploadFile($file,$path);
$webs->renameFile($path,$file,$rename,$title,$tags,$description,$private);
?>