Spongecell API Documentation: Reference - Contacts

Contacts

Allows you to manage your primary contact list associated with your Spongecell account.

Also allows you the capability to access contacts stored in Google, Outlook, and Yahoo. These contacts will be imported into a seperate, temporary contact list to allow for storing of both the name and email address.

Examples

Please log in (above) to see more examples.

Show a new contact (which shows the fields that can be passed in the create):  /api/contacts/new.

Actions

The following actions are supported for this resource:

index GET /api/contacts Return a list of the resources, returning a limited set of fields for each resource.
event_id INTEGER The id of the event
 
show GET /api/contacts/1 Return an expanded set of fields for the specified resource.
 
new GET /api/contacts/new Construct a new resource (do NOT save it), returning the editable fields with default values.
 
edit GET /api/contacts/1/edit Return the editable fields for the specified resource.
 
create POST /api/contacts Create a new temporary authorization token.
first_name STRING First name
last_name STRING Last name
phone_number STRING Mobile phone number
email_address STRING Email address
birthday DATETIME Birthday
gender STRING Gender (male or female)
country STRING The country of the event location
zip_code STRING Zip code
tag_list STRING A list of tags (will overwrite for update)
unique_id STRING A unique external id
 
update PUT /api/contacts/1 Update the specified resource with the data in the POST request.
first_name STRING First name
last_name STRING Last name
phone_number STRING Mobile phone number
email_address STRING Email address
birthday DATETIME Birthday
gender STRING Gender (male or female)
country STRING The country of the event location
zip_code STRING Zip code
tag_list STRING A list of tags (will overwrite for update)
unique_id STRING A unique external id
tag STRING A single tag (will append to existing tag list during update)
 
destroy DELETE /api/contacts/1 Delete the specified resource.
 
import POST /api/contacts/import Import contacts from an external service for an authenticated user.
service STRING The service to import from: google, outlook, or yahoo
user_name STRING User name or e-mail address for authentication
password STRING Password for authentication
 
delete_all POST /api/contacts/delete_all Delete all the remembered contacts for the authenticated user.