GRUPOS ➜ ETIQUETAS
ATENCIÓN
En cualquier respuesta de tipo GroupResponse
- prescindir de la propiedad shortName
- prescindir de la propiedad description
Groups.GetList
No presenta ningún cambio en la llamada a esta función
ResponseObjects.ApiResponse<List<ResponseObjects.GroupResponse>> response =
sdk.Groups.GetList();
$tags = $api->tags()->getTags();
ApiResponse<List<TagJsonObject>> tags = tagsApi.getList();
Groups.Get
No presenta ningún cambio en la llamada a esta función
ResponseObjects.ApiResponse<ResponseObjects.GroupResponse> response =
sdk.Groups.Get(name);
$tag = $api->tags()->getByShortName("test");
ApiResponse<TagJsonObject> tag = tagsApi.getTag(testTagName);
Groups.Delete
No presenta ningún cambio en la llamada a esta función
ResponseObjects.ApiResponse<ResponseObjects.ActionMessageResponse> response =
sdk.Groups.Delete(name);
$response = $api->tags()->deleteTag("newTag");
ApiResponse<TagJsonObject> tag = tagsApi.deleteTag(testTagName);
Groups.GetContactList
No presenta ningún cambio en la llamada a esta función
ResponseObjects.ApiResponse<List<ResponseObjects.ContactJson>> response =
sdk.Groups.GetContactList(name);
$response = $api->tags()->getTagContacts("tag");
ApiResponse<List<ContactJsonObject>> tag = tagsApi.getContactList(tagName);
Funciones deprecadas de clase Groups
- Groups.AddContact
- Groups.RemoveContact
- Groups.Add
Recomendación
Preferible renombrar las variales de shortName a simplemente name