code: def api_call(self, opts, args=None, body=None, **kwargs):
          
          if args:
              path = opts['name'] % args
          else:
              path = opts['name']
          path = '/api/v1%s' % path
          return self._request(
              opts['method'], path=path, payload=body, **kwargs)
docs: Setup the request