Learn R Programming

pushoverr (version 0.1.4)

PushoverResponse-class: The PushoverResponse class

Description

PushoverResponse objects store information from responses to Pushover queries

Arguments

Slots

status
The status response from Pushover 1=good, 0=problem
request
The unique identifier associated with the message
status_code
The HTTP status code returned
headers
A list containing the headers in the HTTP response
content
A list containing the content from the response. This will vary depending on the type of query sent to the server.

See Also

PushoverResponse

Examples

Run this code
## Not run: 
# library(pushoverr)
# 
# # Create PushoverResponse object based on a POST to Pushover
# response <- POST(url="https://api.pushover.net/1/messages.json",
#                  body=params)
# response <- new("PushoverResponse", status=1,
#                 request='8345bfe5fbd7d346028f2863de77c8c4',
#                 status_code=200,
#                 headers=resp$headers,
#                 content=content(rsp))
# 
# # Create PushoverResponse object using constructor
# response <- POST(url="https://api.pushover.net/1/messages.json",
#                  body=params)
# response <- PushoverResponse(status=1,
#                              request='8345bfe5fbd7d346028f2863de77c8c4',
#                              status_code=200,cheaders=resp$headers,
#                              content=content(rsp))
# ## End(Not run)

Run the code above in your browser using DataLab