DevPortal

name2key question

Home Forums Developing with SmartBots HTTP API name2key question

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #205
    Heyter Nitely
    Participant

    Perfect,

    another thing about name2key.

    {“normalname”:”heyter nitely”,”name”:”heyter nitely”,”key”:”16fcc762-abdc-4c30-9591-9b9fd4c8dfaa”,”action”:”name2key”,”result”:”OK”}

    There is no way for your function to return the exact name ? Meaning upper/lowercase in the “normalname” key at least

    #221
    Glaznah Gassner
    Keymaster

    Heyter,

    I believe this question relates to HTTP API, so I moved it here.

    The name2key function returns the name exactly as you pass it. Do you mean it should convert the name to its actual Second lower/uppercase view?

    #223
    Heyter Nitely
    Participant

    Hi.

    Yes, the function return the name as we pass it in both key normalname and name. It should be really useful to return the real name (with upper/lowercase) in the normalname key. For myself, it will prevent for me to use a dataserver event with the key returned to get the good view of the avatar name.

    #224
    Glaznah Gassner
    Keymaster

    Heyter,

    Please check new parameter request_case for these commands:

    https://www.mysmartbots.com/dev/docs/HTTP_API/Bot_Commands/name2key
    https://www.mysmartbots.com/dev/docs/HTTP_API/Bot_Commands/key2name

    It ensures the correct name case retrieval

    #225
    Heyter Nitely
    Participant

    Hi,

    thank you very much for the change, would help me a lot

    Will keep you updated if any error occur

    #262
    Heyter Nitely
    Participant

    Hi !

    I’m still using this function I just noticed that if you require the name “heyter” for example, it will return you “heyter resident” even if the parameter request_case is set to 1.

    #263
    Glaznah Gassner
    Keymaster

    Hello Heyter. This is because your name got saved in the database in lower case (it has been added before we added the case resolution).

    I’ll check the possible solution and notify you about the fix asap.

    #264
    Heyter Nitely
    Participant

    Hi,

    Thanks for reply.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.