Podio API Documentation
Subscriptions: Get subscription by reference
Get the subscription for the given object
Usage
- PHP Client
-
PodioSubscription.php
PodioSubscription::get_for( $ref_type, $ref_id );
- Ruby Gem
-
subscription.rb
Podio::Subscription.find_by_reference( ref_type, ref_id )
Parameters
- ref_type*
- Required.
- ref_id*
- Required.
Response
{
"started_on": When the subscription started,
"notifications": The number of notifications created on this subscription,
"ref": The object this subscription is on
{
"type": The type of the object,
"id": The id of the object
}
}
Sandbox
Try the operation "/subscription/{ref_type}/{ref_id}"You can simulate the API request by filling out the arguments below, and press the submit button to see the response.
You need to be logged in to Podio to use the Sandbox. Login here