Posting API calls with hub security enabled

As an alternative - use @adamkempenich's Rootin' Tootin' Self-Rebootin'. It will only reboot your hub when there's a need to ....