Just a heads up that I'm no longer developing or maintaining this project. My need for it never grew beyond its basic functionality, and now that need is gone. I'm leaving the code here in the event that someone else finds it helpful.
A CFML wrapper for the SalesforceIQ API
This project borrows heavily from the API framework built by jcberquist with stripecfc.
salesforceiq = new path.to.salesforceiq( apiKey = 'xxx', apiSecret = 'xxx' );
Note that for the create() methods, the structs passed in are case sensitive - use array notation when creating them.
createAccount( required struct newAccount )
updateAccount( required string accountId, required struct updatedAccount )
getAccount( required string accountId )
listAccounts( array _ids, numeric _start = "0", numeric _limit = "50", string _modifiedDate )
createContact( required struct newContact )
upsertContact( required struct newContact )
updateContact( required string contactId, required struct updatedContact )
getContact( required string contactId ) {
listContacts( array _ids, numeric _start = "0", numeric _limit = "20", string _modifiedDate )
getList( required string listId ) {
listLists( array _ids, numeric _start = "0", numeric _limit = "20" )
createListItem( required string listId, required struct newListItem )
upsertListItem( required string listId, required struct newListItem, required string upsertType )
updateListItem( required string listId, required string itemId, required struct updatedListItem )
getListItem( required string listId, required string itemId )
deleteListItem( required string listId, required string itemId )
listListItems( required string listId, array _ids, numeric _start = "0", numeric _limit = "20", string _modifiedDate )
Fields https://api.salesforceiq.com/#/curl#documentation_accounts_account-fields_account-field-object
listAccountFields( )