Differences

This shows you the differences between two versions of the page.

Link to this comparison view

get_notifications [2015/09/30 08:14] (current)
Line 1: Line 1:
 +====get_notifications====
 +Return notifications involving the current user, in reverse chronological order. (There are the items that appear on the 'Recent activity' feed in our apps.)
 +
 +GET https://secure.splitwise.com/api/v3.0/get_notifications
 +
 +
 +Parameters:
 +  - optional:
 +    - updated_after
 +    - limit (defaults to 20; set to 0 to fetch all)
 +Return value: a list of Notification objects
 +  - id
 +  - type (see details below)
 +  - created_at
 +  - created_by
 +  - source (i.e. information about the object that caused this action)
 +    - type
 +    - id
 +    - url
 +  - image_url
 +  - content
 +
 +Notifications have a 'type' that indicates what the notification is about. The current list of types is included below. More notification types are likely to be added in the future.
 +  * 0 = expense added
 +  * 1 = expense updated
 +  * 2 = expense deleted
 +  * 3 = comment added
 +  * 4 = added to group
 +  * 5 = removed from group
 +  * 6 = group deleted
 +  * 7 = group settings changed
 +  * 8 = added as friend
 +  * 9 = removed as friend
 +  * 10 = news (a URL should be included)
 +  * 11 = debt simplification
 +  * 12 = group undeleted
 +  * 13 = expense undeleted
 +  * 14 = group currency conversion
 +  * 15 = friend currency conversion