Causes
The Daffy API let's you get information about causes you or others care about.
Get User Causes
Resource
GET /v1/users/:user_id/causesPath Params
| Name | Type | Description | 
|---|---|---|
| :user_id | number | The user ID whose causes you want to get | 
Sample Response
[
  {
    "id": 11,
    "name": "International",
    "logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_International.png",
    "color": "#FEC398"
  },
  {
    "id": 18,
    "name": "Sports",
    "logo": "https://static.daffy.org/assets/default-non-profit-avatars/Default_Sports.png",
    "color": "#9EDFF3"
  }
]Response Reference
| Name | Type | Description | 
|---|---|---|
| id | number | The cause ID | 
| name | string | The cause name | 
| logo | URL | The cause logo URL | 
| color | string | The cause color in Hex | 
Sample Request
curl "https://public.daffy.org/v1/users/<USER ID HERE>/causes" -H 'X-Api-Key: <YOUR KEY HERE>'