Download the PHP package verifymycontent/video-moderation without Composer
On this page you can find all versions of the php package verifymycontent/video-moderation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download verifymycontent/video-moderation
More information about verifymycontent/video-moderation
Files in verifymycontent/video-moderation
Package video-moderation
Short Description Content Moderation SDK
License MIT
Informations about the package video-moderation
VerifyMyContent Video Moderation PHP SDK
PHP SDK to use the VerifyMyContent Video Moderation service.
Installation
Get Started
The main class to handle the moderation integration process is the VerifyMyContent\VideoModeration\Moderation
. It will abstract the HMAC generation for the API calls.
Start a Moderation
Use the start
method to create a moderation, like the example below:
Retrieve Moderation by ID
Retrieves a specific moderation to get current status. Example:
Live Stream
To moderate a live stream broadcast you'll need to use different APIs as described below.
Create a Live Stream Moderation
Use the createLivestream
method to create a live stream moderation, like the example below:
Start a created Live Stream Moderation
When you receive the webhook with the status Authorised
, it means you can now start to broadcast a live stream, you can then use the startLivestream
method to trigger the moderation:
Note: You'll have a limit of time to send this request after you received the webhook notifying the user was authorised to start the broadcast.
Updating Live Stream moderation rules
This endpoint allows you to update the moderation rules for a specific live stream
Complaint Resolution
To start a complaint for previously uploaded content. You need to send the original content and the violations raised by the user.
Create a Complaint Moderation
Use the createComplaintModeration
method to create a complaint moderation, like the example below:
Create a Live Stream Complaint Moderation
Use the createComplaintLivestream
method to create a live stream complaint moderation, like the example below:
Create a Consent Complaint
Use the createComplaintConsent
method to create a complaint consent moderation, like the example below:
Webhook Security
In order to confirm that a webhook POST was sent from VerifyMyContent, we provide a helper class to validate that the Authorization header was sent correctly. Example: