MKR1000 - Connecting to Pubnub
It appears the tutorial is now outdated and the PubNum library does not need the changes described in the tutorial.

The PubNub library has an example titled PubNubWifi101 which shows the client type being set with a #define before including the PubNub headers:

#include &lt;WiFi101.h&gt;
#define PubNub_BASE_CLIENT WiFiClient
#include &lt;PubNub.h&gt;


I don't have a MKR1000 to test with, but I was able to compile the example from the tutorial by adding that single #define after the #include &lt;WiFi101.h&gt;.