stirante / lol-client-java-api

Simple library which provides access to internal League of Legends Client API.
GNU General Public License v3.0
67 stars 14 forks source link

Is there a way to know the params values? #3

Closed blaconix closed 6 years ago

blaconix commented 6 years ago

For example, there's this endpoint: POST /lol-simple-dialog-messages/v1/messages

The data which needs to be sent is:

PARAM messageRequest:
{
  "msgBody": [
    "string"
  ],
  "msgType": "string"
}

It doesn't really matter what I fill those options with, the message is every time empty. Any ideas? Maybe there are some specific params..

image

stirante commented 6 years ago

There isn't really a way for that except listening on the client web socket when this message happens on it's own. My best guess is that the msgBody requires key to translatable string just like /player-notifications/v1/notifications does and the other elements of this array are parameters for this string.

Also you can try checking documentation with getSwaggerJson() or getOpenapiJson()

blaconix commented 6 years ago

Ugh, key to translatable string. That means there's not really a way to use a custom message.