modzyClient.getRelatedModels

Retrieve related models

modzyClient.getRelatedModels(String modelId)

Returns a detailed list of all the models that share tags with a given model.

Parameters

Parameter

Type

Description

Example

modelId

java.lang.String

A model identifier assigned by Modzy.

"ed542963de"

Returns

List<com.modzy.sdk.model.Model> A detailed list of models that share at least one tag with a given model.

Examples

List<Model> models =  modzyClient.getRelatedModels("ed542963de");
System.out.println("Related models "+models.lenght());

You can also use an existing model object

Model model = modzyClient.getModel("ed542963de");
List<Model> models =  modzyClient.getRelatedModels(model);
System.out.println("Related models "+models.lenght());

Did this page help you?