How do I use the REST API to receive data from PubNub?

To receive data, make an HTTP subscribe request and wait for a response. Continue to make HTTP subscribe requests each time data is received while including the new TIMETOKEN (returned by PubNub in every subscribe response) with every request.

See more details in the HTTP REST PUSH API documentation.