Permalink
Browse files

update README

  • Loading branch information...
1 parent 2058fc8 commit ab4199d28324014654c5e240d10ef48ebd3e85af @pyeremenko pyeremenko committed Feb 20, 2014
Showing with 29 additions and 0 deletions.
  1. +29 −0 README.md
View
@@ -188,6 +188,35 @@ If you respond with a 202 status code, the pushed message will be reserved, not
queue.delete_message_push_status(message_id, subscriber_id)
```
+## Pull queues
+
+### Add alerts to a queue
+
+```python
+fixed_desc_alert = {'type': 'fixed', 'direction': 'desc', 'trigger': 1000, 'queue': 'q'}
+progressive_asc_alert = {'type': 'progressive', 'direction': 'asc', 'trigger': 10000, 'queue': 'q'}
+queue.add_alerts(*[fixed_desc_alert, progressive_asc_alert])
+```
+
+### Update alerts in a queue
+
+```python
+progressive_asc_alert = {'type': 'progressive', 'direction': 'asc', 'trigger': 5000, 'queue': 'q'}
+queue.update_alerts(*[progressive_asc_alert])
+```
+
+### Remove alerts from a queue
+
+```python
+q.remove_alerts(*['5305d3b5a3e920763013c796', '513015d32b5a3e763013c796'])
+```
+
+### Remove single alert from a queue
+
+```python
+q.remove_alert('5305d3b5a3e920763013c796')
+```
+
# Full Documentation
You can find more documentation here:

0 comments on commit ab4199d

Please sign in to comment.