gs_ref: Gets referrers for a gauge, paginated.

Description Usage Arguments Note Examples

View source: R/gs_referrers.R

Description

Gets referrers for a gauge, paginated.

Usage

1
2
gs_ref(id, date = NULL, page = NULL, key = NULL, keyname = "GaugesKey",
  ...)

Arguments

id

Your gaug.es id

date

Date format YYYY-MM-DD.

page

page to return

key

API key. If left NULL, function looks for key in your options settings defined in the keyname parameter

keyname

Your API key name in your .Rprofile file

...

Curl debugging options passed in to GET

Note

Note that these examples only work if you provide your Gaug.es API key either by passing in the function, or storing your key in your .Rprofile file, defaults to looking for an entry of "GaugesKey".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
gs_ref(id='4efd83a6f5a1f5158a000004')

# Get list of gauge's, then pass in one of the ids
out <- gs_gauge_list()
gs_ref(id=out$brief[13,1])

library("httr")
gs_ref(id='4efd83a6f5a1f5158a000004', config=verbose())

## End(Not run)

ropensci/rgauges documentation built on May 16, 2018, 7:03 a.m.