The following example in C uses the REST interface with a secure SSL configuration to exchange AP configuration with the onboard ESP8266. The board is a Cactus Rev 2. The sketch updates the status every 60 seconds in the IoTLink dashboard.
click on Learn More, then Examples, there are examples for Cactus rev 2 using both SSL and non-SSL to post REST messages.
Thanks gideonvos for his sharing. Click the link to see the details.