ooici/coi-services — pull request #352 by swarbhanu (2012-11-12 18:13:28+00:00)
Title: Get subscriptions using UNS

The get_subscriptions() method has been implemented in UNS. An integration test has been implemented to test the same.

The way to use the method is the following:

```
notification_requests = user_notification_service.get_subscriptions(resource_id=data_product_id, include_nonactive=False)
```

The above returns a list of notification_requests including both active and past notifications. Past (or retired) notifications are those that have been retired using the delete_notification() method of UNS.

If you want the method to return only the active notifications, use True for the flag, include_nonactive.

```
notification_requests = user_notification_service.get_subscriptions(resource_id=data_product_id, include_nonactive=True)
`````