PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Vivek moyal   PHP Get Author Quotes   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: example file
Class: PHP Get Author Quotes
Retrieve author quotes from TellMeQuotes.com
Author: By
Last change: Update in class file
Date: 8 years ago
Size: 374 bytes
 

Contents

Class file image Download
<?php
include_once './authorQuoteClass.php';
$author=new authorQuoteClass();
$authorid=5;
$key="";

$obj=$author->getAuthorQuote($authorid,$key);
$alert="API Status - ".$obj->{"alert"}."</br>";
$alert.="Author Name - ".$obj->{"AuthorName"}."</br>";
$alert.="Author Id - ".$obj->{"AuthorId"}."</br>";
$alert.="Author Quote - ".$obj->{"Quote"};
print_r($alert);