cgPost: Create new record(s) in Cartegraph

Description Usage Arguments Value Examples

View source: R/postData.R

Description

Create new record(s) in Cartegraph

Usage

1
2
cgPost(class, body, un, pw, org,
  base_url = "https://cgweb06.cartegraphoms.com/")

Arguments

class

cartegraph class or class and attachment ie 'cgSigns_cgAttachmentsClass'

body

DataFrame/tibble to be turned into JSON object

un

api username

pw

api password

org

orginization API ID ie 'PittsburghPA'

base_url

API Base URL (defaulted to "https://cgweb06.cartegraphoms.com/")

Value

http status

Examples

1
2
3
4
5
6
7
## Not run: 
df <- data.frame(IDField = "Sign-50",
     AddressNumberField = 1765)

cgPOST("cgSignsClass", df,"fakeUN", "fakePW", "AnyTownUSA")

## End(Not run)

CityofPittsburgh/caRtegraph documentation built on Aug. 21, 2019, 3:02 p.m.