Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #468 from eris-ltd/fix-unsubscribe-docs
Browse files Browse the repository at this point in the history
Add sub_id parameter
  • Loading branch information
benjaminbollen authored Jan 31, 2017
2 parents c86f33a + 13320cd commit bacde47
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/specs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ TODO
<a name="event-subscribe"></a>
####EventSubscribe

Subscribe to a given type of event.
Subscribe to a given type of event. The event is identified by the `event_id` (see [Event types](#event-types). The response provides a subscription identifier `sub_id` which tracks your client and can be used to [unsubscribe](#eventunsubscribe).

#####HTTP

Expand Down Expand Up @@ -1196,9 +1196,9 @@ For more information about events and the event system, see the [Event system](#
***

<a name="event-unsubscribe"></a>
####EventUnubscribe
####EventUnsubscribe

Unsubscribe to an event type.
Unsubscribe to an event by supplying the subscription identifier `sub_id` you obtained from a previous call to [subscribe](#eventsubscribe).

#####HTTP

Expand All @@ -1210,7 +1210,12 @@ Endpoint: `/event_subs/:id`

Method: `erisdb.eventUnsubscribe`

Parameter: -
Parameter:
```
{
sub_id: <string>
}
```

#####Return value

Expand Down Expand Up @@ -2073,4 +2078,4 @@ One that finds those where 0 <= balance <= 1000.

One that finds non-contract accounts with 0 <= balance <= 1000:

`q=balance:0..1000+code:`
`q=balance:0..1000+code:`

0 comments on commit bacde47

Please sign in to comment.