trem_post.RdThis function provides lower-level access to perform POST requests via Tremendous API. Available endpoints can be found on the official Tremendous API documentation.
For sending payments, I would recommend using trem_send_reward as
it's more intuitive to use. However, this can be done using the
trem_post() function (see examples).
trem_post( client, path, query = list(), body = NULL, disk = NULL, stream = NULL, encode = "json", parse = TRUE )
| client | A Tremendous API Client object, created with
|
|---|---|
| path | The URL path, appended to the base URL, for GET requests such as listing available payment types, funding sources, account members, and more. See the Tremendous API Documentation for examples. |
| query | Query terms as a named list. See crul::HttpClient for more details. |
| body | Request body for Tremendous API, as an R List. |
| disk | A path to write to. |
| stream | An R function to determine how to stream data. |
| encode | "json" by default based on Tremendous API Request format. See crul::HttpClient for more options. |
| parse | Logical: Should the API Response results be parsed into a data frame? |
If parse = TRUE (default), a list containing the response from the
API request. Otherwise, the R6 HttpResponse object containing API request
data.