docs/ContactsApi.md in messente_api-1.0.1 vs docs/ContactsApi.md in messente_api-1.0.2
- old
+ new
@@ -2,26 +2,26 @@
All URIs are relative to *https://api.messente.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /groups/{groupId}/contacts/{phone} | Adds a contact to a group.
-[**create_contact**](ContactsApi.md#create_contact) | **POST** /contacts | Creates a new contact.
-[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /contacts/{phone} | Deletes a contact.
-[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /contacts/{phone} | Lists a contact.
-[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /contacts/{phone}/groups | Lists groups of a contact.
-[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /contacts | Returns all contacts.
-[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /groups/{groupId}/contacts/{phone} | Removes a contact from a group.
-[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /contacts/{phone} | Updates a contact.
+[**add_contact_to_group**](ContactsApi.md#add_contact_to_group) | **POST** /phonebook/groups/{groupId}/contacts/{phone} | Adds a contact to a group
+[**create_contact**](ContactsApi.md#create_contact) | **POST** /phonebook/contacts | Creates a new contact
+[**delete_contact**](ContactsApi.md#delete_contact) | **DELETE** /phonebook/contacts/{phone} | Deletes a contact
+[**fetch_contact**](ContactsApi.md#fetch_contact) | **GET** /phonebook/contacts/{phone} | Lists a contact
+[**fetch_contact_groups**](ContactsApi.md#fetch_contact_groups) | **GET** /phonebook/contacts/{phone}/groups | Lists groups of a contact
+[**fetch_contacts**](ContactsApi.md#fetch_contacts) | **GET** /phonebook/contacts | Returns all contacts
+[**remove_contact_from_group**](ContactsApi.md#remove_contact_from_group) | **DELETE** /phonebook/groups/{groupId}/contacts/{phone} | Removes a contact from a group
+[**update_contact**](ContactsApi.md#update_contact) | **PATCH** /phonebook/contacts/{phone} | Updates a contact
## add_contact_to_group
> Object add_contact_to_group(group_id, phone)
-Adds a contact to a group.
+Adds a contact to a group
### Example
```ruby
# load the gem
@@ -32,15 +32,15 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MessenteApi::ContactsApi.new
-group_id = 'group_id_example' # String | String in uuid format.
+group_id = 'group_id_example' # String | String in UUID format
phone = 'phone_example' # String | A phone number
begin
- #Adds a contact to a group.
+ #Adds a contact to a group
result = api_instance.add_contact_to_group(group_id, phone)
p result
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->add_contact_to_group: #{e}"
end
@@ -49,11 +49,11 @@
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **group_id** | **String**| String in uuid format. |
+ **group_id** | **String**| String in UUID format |
**phone** | **String**| A phone number |
### Return type
**Object**
@@ -70,11 +70,11 @@
## create_contact
> ContactEnvelope create_contact(contact_fields)
-Creates a new contact.
+Creates a new contact
### Example
```ruby
# load the gem
@@ -88,11 +88,11 @@
api_instance = MessenteApi::ContactsApi.new
contact_fields = MessenteApi::ContactFields.new # ContactFields |
begin
- #Creates a new contact.
+ #Creates a new contact
result = api_instance.create_contact(contact_fields)
p result
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->create_contact: #{e}"
end
@@ -121,11 +121,11 @@
## delete_contact
> delete_contact(phone)
-Deletes a contact.
+Deletes a contact
### Example
```ruby
# load the gem
@@ -139,11 +139,11 @@
api_instance = MessenteApi::ContactsApi.new
phone = 'phone_example' # String | A phone number
begin
- #Deletes a contact.
+ #Deletes a contact
api_instance.delete_contact(phone)
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->delete_contact: #{e}"
end
```
@@ -171,11 +171,11 @@
## fetch_contact
> ContactEnvelope fetch_contact(phone)
-Lists a contact.
+Lists a contact
### Example
```ruby
# load the gem
@@ -189,11 +189,11 @@
api_instance = MessenteApi::ContactsApi.new
phone = 'phone_example' # String | A phone number
begin
- #Lists a contact.
+ #Lists a contact
result = api_instance.fetch_contact(phone)
p result
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->fetch_contact: #{e}"
end
@@ -222,11 +222,11 @@
## fetch_contact_groups
> GroupListEnvelope fetch_contact_groups(phone)
-Lists groups of a contact.
+Lists groups of a contact
### Example
```ruby
# load the gem
@@ -240,11 +240,11 @@
api_instance = MessenteApi::ContactsApi.new
phone = 'phone_example' # String | A phone number
begin
- #Lists groups of a contact.
+ #Lists groups of a contact
result = api_instance.fetch_contact_groups(phone)
p result
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->fetch_contact_groups: #{e}"
end
@@ -273,11 +273,11 @@
## fetch_contacts
> ContactListEnvelope fetch_contacts(opts)
-Returns all contacts.
+Returns all contacts
### Example
```ruby
# load the gem
@@ -289,15 +289,15 @@
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: ['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\"
}
begin
- #Returns all contacts.
+ #Returns all contacts
result = api_instance.fetch_contacts(opts)
p result
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->fetch_contacts: #{e}"
end
@@ -306,11 +306,11 @@
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **group_ids** | [**Array<String>**](String.md)| Optional one or many group id strings in uuid format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | [optional]
+ **group_ids** | [**Array<String>**](String.md)| Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\" | [optional]
### Return type
[**ContactListEnvelope**](ContactListEnvelope.md)
@@ -326,11 +326,11 @@
## remove_contact_from_group
> remove_contact_from_group(group_id, phone)
-Removes a contact from a group.
+Removes a contact from a group
### Example
```ruby
# load the gem
@@ -341,15 +341,15 @@
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MessenteApi::ContactsApi.new
-group_id = 'group_id_example' # String | String in uuid format.
+group_id = 'group_id_example' # String | String in UUID format
phone = 'phone_example' # String | A phone number
begin
- #Removes a contact from a group.
+ #Removes a contact from a group
api_instance.remove_contact_from_group(group_id, phone)
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->remove_contact_from_group: #{e}"
end
```
@@ -357,11 +357,11 @@
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **group_id** | **String**| String in uuid format. |
+ **group_id** | **String**| String in UUID format |
**phone** | **String**| A phone number |
### Return type
nil (empty response body)
@@ -378,11 +378,11 @@
## update_contact
> ContactEnvelope update_contact(phone, contact_update_fields)
-Updates a contact.
+Updates a contact
### Example
```ruby
# load the gem
@@ -397,10 +397,10 @@
api_instance = MessenteApi::ContactsApi.new
phone = 'phone_example' # String | A phone number
contact_update_fields = MessenteApi::ContactUpdateFields.new # ContactUpdateFields |
begin
- #Updates a contact.
+ #Updates a contact
result = api_instance.update_contact(phone, contact_update_fields)
p result
rescue MessenteApi::ApiError => e
puts "Exception when calling ContactsApi->update_contact: #{e}"
end