GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::BLOGGER::API::CORE (3)

.ds Aq ’

NAME

Net::Blogger::API::Core - Blogger API methods

CONTENTS

SYNOPSIS



 Its very dark in here because this is a black box.



DESCRIPTION

Net::Blogger::API::Core defined methods that correspond to the Blogger API.

It is inherited by Net::Blogger::Engine::Base.pm

Blogger API METHODS

CW$pkg->getUsersBlogs()

Fetch the blogid, url and blogName for each of the Blogger blogs the current user is registered to.

Returns an array ref of hashes.

CW$pkg->newPost(\%args)

Add a new post to the Blogger server.

Valid arguments are :
o <B>postbodyB> (required)

Scalar ref.

o <B>publishB>

Boolean.

If the length of postbody exceeds maximum length allowed by the Blogger servers — 65,536 characters — currently the text will be chunked into smaller pieces are each piece will be posted separately.

Releases prior to Net::Blogger 0.85 accepted a list of arguments rather than a reference. Version 0.85+ are backwards compatible.

Returns an array containing one, or more, post ids.

CW$pkg->getPost($postid)

Returns a hash ref, containing the following keys : userid, postid, content and dateCreated.

CW$pkg->getRecentPosts(\%args)

Fetch the latest (n) number of posts for a given blog. The most recent posts are returned first.

Valid arguments are
o <B>numpostsB>

Int. If no argument is passed to the method, default is 1.

NumberOfPosts is limited to 20 at this time. Let me know if this gets annoying. Letting this number get too high could result in some expensive db access, so I want to be careful with it. --Ev

Releases prior to Net::Blogger 0.85 accepted a list of arguments rather than a reference. Version 0.85+ are backwards compatible.

Returns true or false, followed by an array of hash refs. Each hash ref contains the following keys : postid,content,userid,dateCreated

CW$pkg->editPost(\%args)

Update the Blogger database. Set the body of entry $postid to $body.

Valid arguments are :
o <B>postbodyB> (required)

Scalar ref or a valid filehandle.

o <B>postidB>

String. required

o <B>publishB>

Boolean.

If the length of postbody exceeds maximum length allowed by the Blogger servers — 65,536 characters — currently the text will be chunked into smaller pieces are each piece will be posted separately.

Releases prior to Net::Blogger 0.85 accepted a list of arguments rather than a reference. Version 0.85+ are backwards compatible.

Returns an array containing one, or more, post ids.

CW$pkg->deletePost(\%args)

Delete a post from the Blogger server.

Valid arguments are
o <B>postidB>

String. required

o <B>publishB>

Boolean.

Releases prior to Net::Blogger 0.85 accepted a list of arguments rather than a reference. Version 0.85+ are backwards compatible.

Returns true or false.

CW$pkg->setTemplate(\%args)

Set the body of the template matching type $type.



 <quote src = "ev">
  template is the HTML (XML, whatever -- Blogger can output any sort
  of text). Must contain opening and closing <Blogger> tags to be
  valid and accepted.
 </quote>



Valid arguments are
o <B>templateB>

Scalar ref. required

o <B>typeB>

String. required

Valid types are main and archiveIndex

Releases prior to Net::Blogger 0.85 accepted a list of arguments rather than a reference. Version 0.85+ are backwards compatible.

Returns true or false.

CW$pkg->getTemplate(\%args)

Fetch the body of the template matching type $type.

Valid types are
o <B>typeB>

String. required

Valid types are main and archiveIndex

Releases prior to Net::Blogger 0.85 accepted a list of arguments rather than a reference. Version 0.85+ are backwards compatible.

Returns a string.

VERSION

1.0

DATE

$Date: 2005/03/26 19:29:08 $

AUTHOR

Aaron Straup Cope

SEE ALSO

Net::Blogger::Engine::Base

Net::Blogger::API::Extended

LICENSE

Copyright (c) 2001-2005 Aaron Straup Cope.

This is free software, you may use it and distribute it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::BLOGGER::API::CORE (3) 2016-04-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.