docs/ContactsApi.md in messente_api-1.0.2 vs docs/ContactsApi.md in messente_api-1.0.3

- old
+ new

@@ -32,12 +32,12 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new -group_id = 'group_id_example' # String | String in UUID format -phone = 'phone_example' # String | A phone number +group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format +phone = '+37251000000' # String | A phone number begin #Adds a contact to a group result = api_instance.add_contact_to_group(group_id, phone) p result @@ -85,11 +85,11 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new -contact_fields = MessenteApi::ContactFields.new # ContactFields | +contact_fields = {"phoneNumber":"+37251000000","email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactFields | begin #Creates a new contact result = api_instance.create_contact(contact_fields) p result @@ -136,11 +136,11 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new -phone = 'phone_example' # String | A phone number +phone = '+37251000000' # String | A phone number begin #Deletes a contact api_instance.delete_contact(phone) rescue MessenteApi::ApiError => e @@ -186,11 +186,11 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new -phone = 'phone_example' # String | A phone number +phone = '+37251000000' # String | A phone number begin #Lists a contact result = api_instance.fetch_contact(phone) p result @@ -237,11 +237,11 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new -phone = 'phone_example' # String | A phone number +phone = '+37251000000' # String | A phone number begin #Lists groups of a contact result = api_instance.fetch_contact_groups(phone) p result @@ -289,11 +289,11 @@ config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new opts = { - group_ids: ['group_ids_example'] # Array<String> | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" + group_ids: ['[\"5792a02a-e5c2-422b-a0a0-0ae65d814663\",\"4792a02a-e5c2-422b-a0a0-0ae65d814662\"]'] # Array<String> | Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" } begin #Returns all contacts result = api_instance.fetch_contacts(opts) @@ -341,12 +341,12 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new -group_id = 'group_id_example' # String | String in UUID format -phone = 'phone_example' # String | A phone number +group_id = '5792a02a-e5c2-422b-a0a0-0ae65d814663' # String | String in UUID format +phone = '+37251000000' # String | A phone number begin #Removes a contact from a group api_instance.remove_contact_from_group(group_id, phone) rescue MessenteApi::ApiError => e @@ -393,11 +393,11 @@ config.username = 'YOUR USERNAME' config.password = 'YOUR PASSWORD' end api_instance = MessenteApi::ContactsApi.new -phone = 'phone_example' # String | A phone number -contact_update_fields = MessenteApi::ContactUpdateFields.new # ContactUpdateFields | +phone = '+37251000000' # String | A phone number +contact_update_fields = {"email":"anyone@messente.com","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"} # ContactUpdateFields | begin #Updates a contact result = api_instance.update_contact(phone, contact_update_fields) p result