Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I noticed there was an API for this, but it's not in the PHP SDK. I was just thinking it might be useful for the Oh Dear CLI tool to be able to post updates. 馃し馃徎
For the
createStatusPageUpdate()
method, I wasn't sure whether to separate it into multiple parameters, or just an array. 馃Feel free to use the following for the markdown docs if you'd like:
Copy-able Markdown documentation
Manage your status page updates with the PHP SDK
Make sure you've read the getting started guide first. Once that's done, you should have our package & authentication ready to go.
Retrieve all status page updates
The simplest example is one where we list all the updates for a status page.
This will return an array of
OhDear\PhpSdk\Resources\StatusPageUpdate
instances.The individual attributes will be explained in the next section.
Add a status page update through the SDK
A new status page update can be created with
createStatusPageUpdate()
.This will return an instance of
OhDear\PhpSdk\Resources\StatusPageUpdate
You can get a few properties of a Status Page Update.
Deleting a status page update
A site can easily be deleted. This assumes the
$statusPageUpdate
is an instance ofOhDear\PhpSdk\Resources\StatusPageUpdate
, which you can get with thestatusPageUpdates()
method.For more extensive understanding of the return values, please have a look at our status page updates API documentation.