How to limit no of aliases ?

Avatar image for ng3870698
ng3870698

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Is there anyway to limit the no of aliases you want ?

for example, WOLVERINE has 20 aliases but say, I want to access only 5 of them. how do I do that ?

"aliases" is a property of type String not an array.

Any solutions ?

Avatar image for mock1
Mock1

6

Forum Posts

6277

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

The API doesn't support limiting the context of values returned. You would need to consume the whole list, parse the values (split at new line /r), and filter in your application.

The same is true for related issues, movies, characters, etc. You have to be able to consume the ENTIRE list, then limit on your end. For example, Wolverine has some 14,000+ Issue Appearances. You cannot get a response with anything between 0 and the full 14,000.