Browse Source

passes CRAN checks O_o

master
boB Rudis 6 years ago
parent
commit
33ccd256f5
No known key found for this signature in database GPG Key ID: 2A514A4997464560
  1. 2
      R/my-posts.R
  2. 6
      README.Rmd
  3. 13
      README.md
  4. 2
      man/wp_get_my_posts.Rd

2
R/my-posts.R

@ -23,7 +23,7 @@
#'
#' @md
#' @references <https://developer.wordpress.com/docs/api/1.1/get/me/posts/>
#' @param quiet if `TRUE` then no progress information will be displayed
#' @param .quiet if `TRUE` then no progress information will be displayed
#' @export
#' @examples \dontrun{
#' wp_auth()

6
README.Rmd

@ -13,7 +13,9 @@ that makes it possible to perform blog orchestration ('CRUD' operations on posts
sites, etc.) as well as retrieve and process blog statistics. Tools are provided to work
with the 'WordPress' 'API' functions.
### YOU MUST
### `<dalek_voice>` YOU WILL O-BEY `</dalek_voice>`
WordPress API requiring authentication means you have to do the OAuth2 dance, and most API calls require authentication. That means you need to start off working with the WordPress API in/from `pressur` using the `wp_auth()` function. For that to work, **YOU MUST**::
=> Go here and make an app: <https://developer.wordpress.com/apps/>
@ -27,6 +29,8 @@ with the 'WordPress' 'API' functions.
And start with a fresh R session for any of this to even have a remote possibility of working.
I'll make friendlier documentation for ^^ in the near future.
### NOTE
Only minimal functionality is provided at present (enough to get stats out).

13
README.md

@ -11,7 +11,12 @@ blog orchestration (‘CRUD’ operations on posts, users, sites, etc.) as
well as retrieve and process blog statistics. Tools are provided to work
with the ‘WordPress’ ‘API’ functions.
### YOU MUST
### `<dalek_voice>` YOU WILL O-BEY `</dalek_voice>`
WordPress API requiring authentication means you have to do the OAuth2
dance, and most API calls require authentication. That means you need to
start off working with the WordPress API in/from `pressur` using the
`wp_auth()` function. For that to work, **YOU MUST**::
\=\> Go here and make an app: <https://developer.wordpress.com/apps/>
@ -28,6 +33,8 @@ that looks like:
And start with a fresh R session for any of this to even have a remote
possibility of working.
I’ll make friendlier documentation for ^^ in the near future.
### NOTE
Only minimal functionality is provided at present (enough to get stats
@ -78,11 +85,11 @@ dplyr::glimpse(wp_site_stats(me$primary_blog))
## ..$ visitors_today : int 86
## ..$ visitors_yesterday : int 129
## ..$ visitors : int 203068
## ..$ views_today : int 147
## ..$ views_today : int 151
## ..$ views_yesterday : int 178
## ..$ views_best_day : chr "2017-05-15"
## ..$ views_best_day_total : int 3984
## ..$ views : int 347797
## ..$ views : int 347802
## ..$ comments : int 1324
## ..$ posts : int 445
## ..$ followers_blog : int 197

2
man/wp_get_my_posts.Rd

@ -7,7 +7,7 @@
wp_get_my_posts(.quiet = FALSE)
}
\arguments{
\item{quiet}{if \code{TRUE} then no progress information will be displayed}
\item{.quiet}{if \code{TRUE} then no progress information will be displayed}
}
\description{
Get all 'my' posts across all sites

Loading…
Cancel
Save