Podio API Documentation
Hooks: Create hook
Create a new hook on the given object. See the area for details.
Usage
- PHP Client
-
PodioHook.php
PodioHook::create( $ref_type, $ref_id, $attributes = array() );
- Ruby Gem
-
hook.rb
Podio::Hook.create( hookable_type, hookable_id, attributes )
Parameters
- ref_type*
- Required.
- ref_id*
- Required.
Request
{
"url": The url of endpoint,
"type": The type of events to listen to, see the area for options
}
Response
{
"hook_id": The id of the hook created
}