RabbitMQ

Access to send events via RabbitMQ is obtained from account manager via [email protected].

New events should be added to the queue client-events

Message format replicates HTTP. Requires two service fields for sender authorisation.

{
    "payload": [
        {
            "amountUsd": "100",
            "eventId": "f0830d8e-471e-416a-afa1-a2289d1963ad"
            "resourceId": "theBestRoulette",
            "userId": "333840b5-e681-4d44-8dde-979687929422",
            "multiplier": 1,
            "extra": "Any information"
        }
    ],
    "signature": "<YOUR_SIGNATURE>",
    "apiKey": "<YOUR_API_KEY>"
}

Complete example for testing via curl

curl -u user:pass -H "content-type:application/json" -X POST \
    -d'{"properties":{"delivery_mode":2},"routing_key":"client-events","payload":"{\"payload\": [{\"amountUsd\": \"100\",\"eventId\":\"f0830d8e-471e-416a-afa1-a2289d1963ad\",\"resourceId\": \"theBestRoulette\",\"userId\":\"333840b5-e681-4d44-8dde-979687929422\",\"type\": \"x1\"}],\"signature\": \"<YOUR_SIGNATURE>\",\"apiKey\": \"<YOUR_API_KEY>\"}","payload_encoding":"string"}' \
    http://eventhub.demo.rewindprotocol.com:15672/api/exchanges/%2f/amq.default/publish

Last updated