本文介绍了Attask API 用户名搜索区分大小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试使用 Attask API 基于字符串参数提取用户列表,使用 name_Mod包含".

I'm currently trying to use Attask API's to pull out a list of users based on a string parameter, using the name_Mod "contains".

到目前为止一切顺利,我可以拉回用户名及其相应 ID 的列表,但我发现 api 似乎区分大小写.

So far so good, I can pull back a list of usernames and their corresponding ID's but I've found that the api appears to be case sensitive.

例如,我给它参数Dan"...

For example, I give it the parameter "Dan"...

"https://wibble.attask-ondemand.com/attask/api/user/search?sessionID=wibble&$$LIMIT=2000&name=Dan&name_Mod=contains&fields=ID,name"

"https://wibble.attask-ondemand.com/attask/api/user/search?sessionID=wibble&$$LIMIT=2000&name=Dan&name_Mod=contains&fields=ID,name"

...我得到的结果就像丹尼尔·布朗"

...and I get results like "Daniel Brown"

我给它丹"...

"https://wibble.attask-ondemand.com/attask/api/user/search?sessionID=wibble&$$LIMIT=2000&name=dan&name_Mod=contains&fields=ID,name"

"https://wibble.attask-ondemand.com/attask/api/user/search?sessionID=wibble&$$LIMIT=2000&name=dan&name_Mod=contains&fields=ID,name"

...我得到的结果类似于Rachael Jordan",但没有Daniel Brown".

...I get results like "Rachael Jordan", but no "Daniel Brown".

有没有办法告诉 Attask 我不关心区分大小写?只给我两个结果,让我担心?或者如果存在这种特殊限制的方法?

Is there a way to tell Attask that I don't care about case sensitivity? To just give me both results and let me worry about it? Or a way around this particular limitation if it exists?

推荐答案

还有其他 MOD 名为 cicontains 其中 ci 表示 >不区分大小写.你可以改用它.

There is also other MOD named cicontains where ci means case insensitive. You can use it instead.

这篇关于Attask API 用户名搜索区分大小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 15:45