Przejdź do treści
SoulFire LogoSoulFire

List negotiated packet schemas

Ten poradnik jest dostępny tylko po angielsku.

GET
/v1/instances/{instance_id}/bots/{bot_id}/protocol/packets

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Path Parameters

instance_id*string
bot_id*string

Query Parameters

direction*string
Value in"PACKET_DIRECTION_UNSPECIFIED""PACKET_DIRECTION_CLIENTBOUND""PACKET_DIRECTION_SERVERBOUND"

Response Body

Successful response.

application/json
  1. response
packets?array<>
Example Request
curl -X GET 'http://127.0.0.1:38765/v1/instances/string/bots/string/protocol/packets?direction=PACKET_DIRECTION_UNSPECIFIED'
Example Response
{
  "packets": [
    {
      "direction": "PACKET_DIRECTION_UNSPECIFIED",
      "name": "string",
      "networkId": 0,
      "protocolState": "string"
    }
  ]
}

Czy ta strona jest pomocna?