requests wrapper of rest api