ducky/subscriptions
ducky/subscriptions/api/response.go
Create a client for working with subscriptions. We mostly copied our code.secondbit.org/auth.hg/client package to create a simple client library for communicating with our Subscriptions API. Right now, the client only has support for creating a subscription. It remains untested, but it builds.
| paddy@4 | 1 package api |
| paddy@4 | 2 |
| paddy@4 | 3 import ( |
| paddy@4 | 4 "code.secondbit.org/api.hg" |
| paddy@4 | 5 "code.secondbit.org/ducky/subscriptions.hg" |
| paddy@4 | 6 ) |
| paddy@4 | 7 |
| paddy@4 | 8 type Response struct { |
| paddy@4 | 9 Subscriptions []subscriptions.Subscription `json:"subscriptions,omitempty"` |
| paddy@4 | 10 Errors []api.RequestError `json:"errors,omitempty"` |
| paddy@4 | 11 } |