refactor api requests

Signed-off-by: Chris Boertien <chris@aktionlab.com>
Merge branch 'master' of github.com:AktionLab/chickun2