I am trying to interface arduino to the pubnub cloud by using esp8266, please suggest me the best solution to push data from arduino kit to cloud and also to get the same data to devices from cloud.
Here is a short tutorial on how to use PubNub with the ESP8266
Note that this uses custom firmware, not standard Arduino. According to this link you can now use regular Arduino directly, meaning you should be able to use PubNub's standard Arduino api.