@@ -61,30 +61,124 @@ the "list accounts" endpoint.
6161Since the Drip client is a flat API client, most API actions are available
6262as methods on the client object. The following methods are currently available:
6363
64- | Action | Method |
64+ #### Accounts
65+
66+ | Actions | Methods |
6567| :------------------------- | :--------------------------------------------------- |
6668| List accounts | ` #accounts ` |
69+ | Fetch an account | ` #account(id) ` |
70+
71+ #### Broadcasts
72+
73+ | Actions | Methods |
74+ | :------------------------- | :--------------------------------------------------- |
75+ | List broadcasts | ` #broadcasts ` |
76+ | Fetch a broadcast | ` #broadcast(id) ` |
77+
78+ #### Campaigns
79+
80+ | Actions | Methods |
81+ | :------------------------- | :--------------------------------------------------- |
82+ | List campaigns | ` #campaigns(options = {}) ` |
83+ | Fetch a campaign | ` #campaign(id) ` |
84+ | Activate a campaign | ` #activate_campaign(id) ` |
85+ | Pause a campaign | ` #pause_campaign(id) ` |
86+ | List campaign subscribers | ` #campaign_subscribers(id) ` |
87+ | Subscribe to a campaign | See the ` #subscribe ` method on "Subscribers" below |
88+
89+ #### Campaign Subscriptions
90+
91+ | Actions | Methods |
92+ | :------------------------- | :--------------------------------------------------- |
93+ | List subscriber subscriptions | ` #campaign_subscriptions(subscriber_id) ` |
94+
95+ #### Conversions
96+
97+ | Actions | Methods |
98+ | :------------------------- | :--------------------------------------------------- |
99+ | List all conversions | ` #conversions(options = {}) ` |
100+ | Fetch a conversion | ` #conversion(id) ` |
101+
102+ #### Custom Fields
103+
104+ | Actions | Methods |
105+ | :------------------------- | :--------------------------------------------------- |
106+ | List all custom fields | ` #custom_fields ` |
107+
108+ #### Events
109+
110+ | Actions | Methods |
111+ | :------------------------- | :--------------------------------------------------- |
112+ | Track an event | ` #track_event(email, action, properties = {}) ` |
113+ | Track a batch of events | ` #track_events(events) ` |
114+ | List all custom event actions | ` #event_actions ` |
115+
116+ #### Forms
117+
118+ | Actions | Methods |
119+ | :------------------------- | :--------------------------------------------------- |
120+ | List all forms | ` #forms ` |
121+ | Fetch a form | ` #form(id) ` |
122+
123+ #### Purchases
124+
125+ | Actions | Methods |
126+ | :------------------------- | :--------------------------------------------------- |
127+ | List purchases for a subscriber | ` #purchases(email) ` |
128+ | Create a purchase | ` #create_purchase(email, amount, options = {}) ` |
129+ | Fetch a purchase | ` #purchase(email, id) ` |
130+
131+ #### Subscribers
132+
133+ | Actions | Methods |
134+ | :------------------------- | :--------------------------------------------------- |
67135| List subscribers | ` #subscribers(options = {}) ` |
68136| Create/update a subscriber | ` #create_or_update_subscriber(email, options = {}) ` |
69137| Create/update a batch of subscribers | ` #create_or_update_subscribers(subscribers) ` |
138+ | Unsubscribe a batch of subscribers | ` #unsubscribe_subscribers(subscribers) ` |
70139| Fetch a subscriber | ` #subscriber(id_or_email) ` |
140+ | Delete | ` #delete_subscriber(id_or_email) ` |
71141| Subscribe to a campaign | ` #subscribe(email, campaign_id, options = {}) ` |
142+ | Unsubscribe from all mailings | ` #unsubscribe_from_all(id_or_email) ` |
72143| Unsubscribe | ` #unsubscribe(id_or_email, options = {}) ` |
73- | Delete | ` #delete_subscriber(id_or_email) ` |
144+
145+ #### Tags
146+
147+ | Actions | Methods |
148+ | :------------------------- | :--------------------------------------------------- |
74149| List tags | ` #tags ` |
75150| Apply a tag | ` #apply_tag(email, tag) ` |
76151| Remove a tag | ` #remove_tag(email, tag) ` |
77- | Track an event | ` #track_event(email, action, properties = {}) ` |
78- | Track a batch of events | ` #track_events(events) ` |
79- | List campaigns | ` #campaigns ` |
80- | Create a purchase | ` #create_purchase(email, amount, options = {}) ` |
81- | List purchases for a subscriber | ` #purchases(email) ` |
82- | Fetch a purchase | ` #purchase(email, id) ` |
83152
84- ** Note:** We do not have complete API coverage yet. If we are missing an API method
85- that you need to use in your application, please file an issue and/or open a
86- pull request. [ See the official REST API docs] ( https://www.getdrip.com/docs/rest-api )
87- for a complete API reference.
153+ #### Webhooks
154+
155+ | Actions | Methods |
156+ | :------------------------- | :--------------------------------------------------- |
157+ | List webhooks | ` #webhooks ` |
158+ | Fetch a webhook | ` #webhook(id) ` |
159+ | Create a new webhook | ` #create_webhook(post_url, include_received_email, events) ` |
160+ | Delete a webhook | ` #delete_webhook(id) ` |
161+
162+ #### Workflows
163+
164+ | Actions | Methods |
165+ | :------------------------- | :--------------------------------------------------- |
166+ | List workflows | ` #workflows ` |
167+ | Fetch a workflow | ` #workflow(id) ` |
168+ | Activate a workflow | ` #activate_workflow(id) ` |
169+ | Pause a workflow | ` #pause_workflow(id) ` |
170+ | Start a subscriber on a workflow | ` #start_subscriber_workflow(id, options = {}) ` |
171+ | Remove a subscriber from a workflow | ` #remove_subscriber_workflow(workflow_id, id_or_email) ` |
172+
173+ #### Workflow Triggers
174+
175+ | Actions | Methods |
176+ | :------------------------- | :--------------------------------------------------- |
177+ | List workflow triggers | ` #workflow_triggers(id) ` |
178+ | Create a workflow trigger | ` #create_workflow_trigger(id, options = {}) ` |
179+ | Update a workflow trigger | ` #update_workflow_trigger(id, options = {} ` |
180+
181+ [ See the official REST API docs] ( https://www.getdrip.com/docs/rest-api ) for a complete API reference and explanations.
88182
89183## Use Cases
90184
0 commit comments