In this example, we demonstrate how to use the Pusher adapter to receive messages published on a channel. Publishing messages in this example is not covered as this is typically handled in Pusher's server client libraries. See our Pusher protocol adapter documentation for more details. As our adapters provide interoperability with Ably client libraries, you can for example publish a message via Ably's REST API and receive messages with a Pubnub client. Try the following in your console:
curl -X POST https://rest.ably.io/channels/public:thought/messages \ -u "xVLyHw.NcNd0Q:I_Mo4ct1C-UXN2Jg" \ --data 'name=msg&data=hello+from+curl'