labguru_post_item: Labguru post item

View source: R/core_api_functions.R

labguru_post_itemR Documentation

Labguru post item

Description

POST a body to a url with optional arguments. Function includes standard error handling.

Usage

labguru_post_item(url, body, encode = NULL, config = NULL, handle = NULL)

Arguments

url

url to the labGuru instance API endpoint

body

content to be included in POST call

encode

encoding of the request (defaults to NULL, should be JSON)

config

other configuration options passed on to httr POST

handle

handling arguments passed on to httr POST

Value

parsed object

Examples

# helper function for POST requests

BioData/LabguruR documentation built on May 11, 2022, 11:46 p.m.