PHP Classes

File: index.php

Recommend this page to a friend!
  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: 14 years ago
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);
?>