moabb.datasets.download.fs_issue_request#

moabb.datasets.download.fs_issue_request(method, url, headers, data=None, binary=False)[source]#

Wrapper for HTTP request.

Parameters
  • method (str) – HTTP method. One of GET, PUT, POST or DELETE

  • url (str) – URL for the request

  • headers (dict) – HTTP header information

  • data (dict) – Figshare article data

  • binary (bool) – Whether data is binary or not

Returns

response_data – JSON response for the request returned as python dict

Return type

dict