get_paste: Get raw paste data

Description Usage Arguments Value Note References

Description

Get raw paste data

Usage

1
get_paste(x, use_scraping_api = FALSE, include_metadata = FALSE)

Arguments

x

paste id

use_scraping_api

if a pro member, set this to TRUE, otherwise leave it FALSE and be kind to their servers lest ye be banned.

include_metadata

if use_scraping_api is TRUE and this is TRUE, the returned list will include metadata

Value

a list with the paste text or the paste text plus metadata. A list is returned to make it easier to deal with the results programmatically. Returning a list in one call context and a character vector in another may be OK interactively bit it creates a situation where you need to write if logic to handle programmatically. Use toString to extract just the paste body

Note

This API call can use the Scraping API which requires a paid account and a white-listed IP address.

References

Scraping API


hrbrmstr/pastebin documentation built on May 17, 2019, 5:12 p.m.