Contact management

contact/describe

URL: https://fleep.io/api/contact/describe

Provide description for the contact that will be displayed only to the user

Input:

contact_id          uuid            - Contact id
contact_name        text            - Description to set

Output:

contact/hide

URL: https://fleep.io/api/contact/hide

Hide contacts from this user’s contactlist

Input:

contacts            list            -- list of contacts to hide

Output:

contacts            list            -- list of contact id's actually hidden

contact/import

URL: https://fleep.io/api/contact/import

Import contacts into users contactlist. Used for gmail contact import.

Input:

contact_list    - array of ContactImport objects

Output:

stream          - list of ContactInfo records
                - see api/account/poll

ContactImport:

addr_full       - email address
addr_descr      - user set contact name
phone_nr        - user phone number

ContactInfo:

contact/sync

URL: https://fleep.io/api/contact/sync

Returns profile data for given id. Use it to update local client side cache.

Input:

contact_id          text            - Account profile Id

Output:

contact/sync/activity

URL: https://fleep.io/api/contact/sync/activity

Sync last seen time for requested contacts

Input:

contacts            list            - list of account_ids to sync

Output:

stream              list            - List of LastSeenInfo records

LastSeenInfo:

contact/sync/all

URL: https://fleep.io/api/contact/sync/all

Returns profile data for given list of id’s. Use it to update local client side cache.

Input:

ignore              list = None     - list of account_ids client already has
search_str          text = None     - filter found contacts using given string

Output:

contacts            list            - List of ContactInfo records

ContactInfo:

contact/sync/list

URL: https://fleep.io/api/contact/sync/list

Returns profile data for given list of id’s. Use it to update local client side cache.

Input:

contacts            list            - list of account_ids to sync

Output:

contacts            list            - List of ContactInfo records

ContactInfo:

contact/unlist

URL: https://fleep.io/api/contact/unlist

Remove contact from conversation list dialog suggestions

Input:

contact_id          uuid            -- contact to unlist

Output:

stream              list            -- ContactInfo record

ContactInfo: