Blogger-class: Location Class for Google's Blogger service

Description Usage Arguments Value References See Also Examples

Description

This class implements a small subset of the blogger API v3. The meta method provides information on the submitted blogposts. The put method accepts a BlogPostTarget that can be transfered to Blogger.

Instantiates an object and authenticates with google. If the provided oauthfile parameter points to an existing file, the authentication information is loaded by read.google.oauth2, and the client_id and client_secret information are ignored. If oauthfile is missing, an initial authentication (directing the user to an website) is performed by google.oauth2.

Usage

1
2
3
4
blogger(oauthfile = getOption("blogger.oauthfile"),
  client_id = getOption("datamart.client_id"),
  client_secret = getOption("datamart.client_secret"),
  blogurl = getOption("blogger.blog"), clss = "Blogger")

Arguments

oauthfile

filename of previously saved authentication information.

client_id

client_id. See google.oauth2

client_secret

client_secret. See google.oauth2

blogurl

URL of the (existing) blog. Defaults to getOption("blogger.blog").

clss

name of the class for convenient inheritance. Defaults to "Blogger".

Value

Blogger

References

Blogger

See Also

blogger, mdreport

Examples

1
getSlots("Blogger")

Example output

   google.auth    curl.handle         blogid      blogtitle 
"GoogleOAuth2"          "ANY"    "character"    "character" 

datamart documentation built on May 2, 2019, 9:40 a.m.