Skip to content

Commit

Permalink
Merge pull request #179 from casper91/master
Browse files Browse the repository at this point in the history
Added examples using fields
  • Loading branch information
amro committed Feb 4, 2016
2 parents b446d8a + de8f5b7 commit 5c5dc0b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.markdown
Expand Up @@ -129,6 +129,20 @@ You can also unsubscribe a member from a list:
gibbon.lists(list_id).members(lower_case_md5_hashed_email_address).update(body: { status: "unsubscribed" })
```
### Fields
Only get ids and names from all lists
```ruby
gibbon.lists.retrieve(params: {"fields": "lists.id,lists.name"})
```
Only get emails from all members
```ruby
gibbon.lists(list_id).members.retrieve(params: {"fields": "members.email_address"})
```
### Campaigns
Get all campaigns:
Expand Down

0 comments on commit 5c5dc0b

Please sign in to comment.